5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
53 lines
953 B
Nix
53 lines
953 B
Nix
{ 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";
|
|
};
|
|
}
|