diff options
Diffstat (limited to 'nixpkgs/pkgs/by-name/nh/nhentai/package.nix')
-rw-r--r-- | nixpkgs/pkgs/by-name/nh/nhentai/package.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/by-name/nh/nhentai/package.nix b/nixpkgs/pkgs/by-name/nh/nhentai/package.nix new file mode 100644 index 000000000000..e21c98bf58ea --- /dev/null +++ b/nixpkgs/pkgs/by-name/nh/nhentai/package.nix @@ -0,0 +1,37 @@ +{ lib +, python3Packages +, fetchFromGitHub +}: + +python3Packages.buildPythonApplication rec { + pname = "nhentai"; + version = "0.5.3"; + + src = fetchFromGitHub { + owner = "RicterZ"; + repo = pname; + rev = version; + hash = "sha256-SjWIctAyczjYGP4buXQBA/RcrdikMSuSBtfhORNmXMc="; + }; + + # tests require a network connection + doCheck = false; + + propagatedBuildInputs = with python3Packages; [ + requests + img2pdf + iso8601 + beautifulsoup4 + soupsieve + tabulate + future + ]; + + meta = { + homepage = "https://github.com/RicterZ/nhentai"; + description = "CLI tool for downloading doujinshi from adult site(s)"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + mainProgram = "nhentai"; + }; +} |