mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
expliot: relax pymodbus constraint
- switch to pythonRelaxDepsHook
This commit is contained in:
parent
4a91562aba
commit
ddbdd15287
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user