2023-08-10 07:59:29 +00:00
|
|
|
{ lib
|
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, pillow
|
|
|
|
, poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonRelaxDepsHook
|
2023-08-10 07:59:29 +00:00
|
|
|
, requests
|
|
|
|
, rich
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "getjump";
|
|
|
|
version = "2.4.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
hash = "sha256-gu6h9Yb0xdfvdmoeZGQPFCJhBJxuQ4iWlQquig1ljnY=";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
2023-10-09 19:29:22 +00:00
|
|
|
pythonRelaxDepsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
# remove after https://github.com/eggplants/getjump/pull/123 is released
|
|
|
|
"pillow"
|
2023-08-10 07:59:29 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
beautifulsoup4
|
|
|
|
pillow
|
|
|
|
requests
|
|
|
|
rich
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"getjump"
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
# all the tests talk to the internet
|
|
|
|
doCheck = false;
|
|
|
|
|
2023-08-10 07:59:29 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|