expliot: relax pymodbus constraint

- switch to pythonRelaxDepsHook
This commit is contained in:
Fabian Affolter 2023-01-22 11:04:36 +01:00
parent 4a91562aba
commit ddbdd15287

View File

@ -30,6 +30,19 @@ buildPythonApplication rec {
hash = "sha256-7Cuj3YKKwDxP2KKueJR9ZO5Bduv+lw0Y87Rw4b0jbGY=";
};
pythonRelaxDeps = [
"pymodbus"
"pynetdicom"
"cryptography"
"python-can"
"pyparsing"
"zeroconf"
];
nativeBuildInputs = [
pythonRelaxDepsHook
];
propagatedBuildInputs = [
aiocoap
awsiotpythonsdk
@ -49,16 +62,6 @@ buildPythonApplication rec {
zeroconf
];
postPatch = ''
# https://gitlab.com/expliot_framework/expliot/-/merge_requests/113
substituteInPlace setup.py \
--replace "pynetdicom>=1.5.1,<2" "pynetdicom>=2,<3" \
--replace "cryptography>=3.0,<4" "cryptography>=35,<40" \
--replace "python-can>=3.3.3,<4" "python-can>=3.3.3,<5" \
--replace "pyparsing>=2.4.7,<3" "pyparsing>=2.4.7,<4" \
--replace "zeroconf>=0.30,<0.40" "zeroconf"
'';
# Project has no tests
doCheck = false;