about summary refs log tree commit diff
path: root/pkgs/development/python-modules/getjump/default.nix
blob: b1a1b7005c091d26e8ebecad6f1b79cde214f5a7 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchPypi
, pillow
, poetry-core
, pythonRelaxDepsHook
, requests
, rich
}:

buildPythonPackage rec {
  pname = "getjump";
  version = "2.4.0";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-gu6h9Yb0xdfvdmoeZGQPFCJhBJxuQ4iWlQquig1ljnY=";
  };

  nativeBuildInputs = [
    poetry-core
    pythonRelaxDepsHook
  ];

  pythonRelaxDeps = [
    # remove after https://github.com/eggplants/getjump/pull/123 is released
    "pillow"
  ];

  propagatedBuildInputs = [
    beautifulsoup4
    pillow
    requests
    rich
  ];

  pythonImportsCheck = [
    "getjump"
  ];

  # all the tests talk to the internet
  doCheck = false;

  meta = with lib; {
    description = "Get and save images from jump web viewer";
    homepage = "https://github.com/eggplants/getjump";
    license = licenses.mit;
    maintainers = [ maintainers.marsam ];
    mainProgram = "jget";
  };
}