From ddbdd15287f05579e8ac3a4b899e73e6522ca882 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 22 Jan 2023 11:04:36 +0100 Subject: [PATCH] expliot: relax pymodbus constraint - switch to pythonRelaxDepsHook --- pkgs/tools/security/expliot/default.nix | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/pkgs/tools/security/expliot/default.nix b/pkgs/tools/security/expliot/default.nix index 4ec31802710d..593ed498345a 100644 --- a/pkgs/tools/security/expliot/default.nix +++ b/pkgs/tools/security/expliot/default.nix @@ -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;