depot/third_party/nixpkgs/pkgs/development/python-modules/getjump/default.nix

54 lines
953 B
Nix
Raw Normal View History

{ 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";
};
}