nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit a6503a8b5b480039b559bbbfc3de04f57a60001b
parent fc60dc2ec1d09d81c36051dc34d5ececcb483ca8
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Thu, 31 Mar 2022 16:21:18 +0300

Add wptools

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/misc/wptools/default.nix | 29+++++++++++++++++++++++++++++
2 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -308,6 +308,7 @@ lib.makeScope newScope ( tcvt = callPackage ./misc/tcvt { }; telegabber = callPackage ./misc/telegabber { }; tlstunnel = callPackage ./misc/tlstunnel { }; + wptools = callPackage ./misc/wptools { }; xfractint = callPackage ./misc/xfractint { }; xtr = callPackage ./misc/xtr { inherit (darwin.apple_sdk.frameworks) Foundation; diff --git a/pkgs/misc/wptools/default.nix b/pkgs/misc/wptools/default.nix @@ -0,0 +1,29 @@ +{ lib, fetchFromGitHub, python3Packages }: + +python3Packages.buildPythonApplication rec { + pname = "wptools"; + version = "2022-02-22"; + + src = fetchFromGitHub { + owner = "siznax"; + repo = pname; + rev = "a98a544f206a62c9f04fd34c0805825a8d531936"; + hash = "sha256-l1sCEhveK9fefZY6tL/kh2bOcq4ids4HZu6pXvn17AA="; + }; + + propagatedBuildInputs = with python3Packages; [ + certifi + html2text + lxml + requests + ]; + + doCheck = false; + + meta = with lib; { + description = "Wikipedia tools (for Humans)"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}