about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/misc/nhentai/default.nix
blob: 1f9fdcf48ccbde8bf728cf357b83e1a6f9331acd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ ];
    mainProgram = "nhentai";
  };
}