nixpkgs/pkgs/applications/misc/nhentai/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
773 B
Nix
Raw Normal View History

2023-07-21 16:53:13 +00:00
{ lib
, python3Packages
, fetchFromGitHub
}:
2021-08-28 18:33:28 +00:00
python3Packages.buildPythonApplication rec {
pname = "nhentai";
2023-07-21 16:53:13 +00:00
version = "0.5.3";
2023-11-26 19:16:14 +00:00
2023-07-21 16:53:13 +00:00
src = fetchFromGitHub {
owner = "RicterZ";
repo = pname;
rev = version;
hash = "sha256-SjWIctAyczjYGP4buXQBA/RcrdikMSuSBtfhORNmXMc=";
2021-08-28 18:33:28 +00:00
};
2023-07-21 16:53:13 +00:00
# tests require a network connection
doCheck = false;
2021-08-28 18:33:28 +00:00
propagatedBuildInputs = with python3Packages; [
requests
2023-11-26 19:14:54 +00:00
img2pdf
2021-08-28 18:33:28 +00:00
iso8601
beautifulsoup4
soupsieve
tabulate
future
];
2023-11-26 19:16:14 +00:00
meta = {
2021-08-28 18:33:28 +00:00
homepage = "https://github.com/RicterZ/nhentai";
description = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>";
2023-11-26 19:16:14 +00:00
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ ];
2023-11-26 19:15:08 +00:00
mainProgram = "nhentai";
2021-08-28 18:33:28 +00:00
};
}