python311Packages.hydrus-api: modernize

This commit is contained in:
Peder Bergebakken Sundt
2024-08-13 17:49:28 +02:00
parent 16ec3be15b
commit bc6f638fa0
@@ -10,7 +10,7 @@
buildPythonPackage rec {
pname = "hydrus-api";
version = "5.0.1";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.9";
@@ -20,15 +20,9 @@ buildPythonPackage rec {
hash = "sha256-3Roeab9/woGF/aZYm9nbqrcyYN8CKA1k66cTRxx6jM4=";
};
postPatch = ''
substituteInPlace pyproject.toml --replace \
"poetry.masonry.api" \
"poetry.core.masonry.api"
'';
build-system = [ poetry-core ];
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ requests ];
dependencies = [ requests ];
pythonImportsCheck = [ "hydrus_api" ];