9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
47 lines
898 B
Nix
47 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchPypi
|
|
, poetry-core
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "hydrus-api";
|
|
version = "5.0.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchPypi {
|
|
pname = "hydrus_api";
|
|
inherit version;
|
|
hash = "sha256-3Roeab9/woGF/aZYm9nbqrcyYN8CKA1k66cTRxx6jM4=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml --replace \
|
|
"poetry.masonry.api" \
|
|
"poetry.core.masonry.api"
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
];
|
|
|
|
pythonImportsCheck = [ "hydrus_api" ];
|
|
|
|
# There are no unit tests
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "Python module implementing the Hydrus API";
|
|
homepage = "https://gitlab.com/cryzed/hydrus-api";
|
|
license = licenses.agpl3Plus;
|
|
maintainers = with maintainers; [ dandellion ];
|
|
};
|
|
}
|