summary refs log tree commit diff
path: root/pkgs/applications/misc/nhentai/default.nix
blob: 9f99c4fa62d6ec6ab7a6ecb4aa83605adc404d50 (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
{ 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
    iso8601
    beautifulsoup4
    soupsieve
    tabulate
    future
  ];

  meta = with lib; {
    homepage = "https://github.com/RicterZ/nhentai";
    description = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>";
    license = licenses.mit;
    maintainers = with maintainers; [ ];
  };
}