depot/third_party/nixpkgs/pkgs/development/python-modules/hydrus-api/default.nix
Default email 83405b6dd2 Project import generated by Copybara.
GitOrigin-RevId: ac718d02867a84b42522a0ece52d841188208f2c
2023-03-15 17:39:30 +01:00

47 lines
898 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, poetry-core
, requests
}:
buildPythonPackage rec {
pname = "hydrus-api";
version = "5.0.0";
format = "pyproject";
disabled = pythonOlder "3.9";
src = fetchPypi {
pname = "hydrus_api";
inherit version;
hash = "sha256-s6gS1rVcbg7hcE63hGdPhJCcgS4N4d58MpSrECAfe0U=";
};
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 ];
};
}