3
0
Fork 0
forked from mirrors/nixpkgs

python311Packages.synologydsm-api: relax urllib3 version constraint

This commit is contained in:
Robert Schütz 2024-01-21 18:32:51 -08:00
parent bbe7d8f876
commit 1b0905d119

View file

@ -4,6 +4,7 @@
, fetchFromGitHub
, fetchpatch
, poetry-core
, pythonRelaxDepsHook
, requests
, urllib3
, pytestCheckHook
@ -13,7 +14,7 @@ buildPythonPackage rec {
pname = "synologydsm-api";
version = "1.0.2";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
@ -21,7 +22,7 @@ buildPythonPackage rec {
owner = "hacf-fr";
repo = "synologydsm-api";
rev = "v${version}";
sha256 = "0gyahf1x6i6j9pslh1y3pyh3si5jvxb06r1w761b9gsxyk14y1si";
hash = "sha256-UQdPwvRdv7SCOTxkA1bfskQ9oL/DB0j1TdJE04ODyj8=";
};
patches = [
@ -29,12 +30,17 @@ buildPythonPackage rec {
(fetchpatch {
name = "switch-to-poetry-core.patch";
url = "https://github.com/hacf-fr/synologydsm-api/commit/f1ea2be927388bdff6d43d09027b82a854635e34.patch";
sha256 = "120pdgp2i4ds6y3rf9j372f9zdcf4y8rsgl1xjbkgdhkp76bkkgr";
hash = "sha256-+c25zLkTtjeX7IE+nZEnjrWfnDhDJpeHN7qRKO5rF4g=";
})
];
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"urllib3"
];
propagatedBuildInputs = [