about summary refs log tree commit diff
path: root/pkgs/tools/security/expliot
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2021-12-27 23:18:31 +0100
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-28 11:07:59 -0800
commitd53978239b265066804a45b7607b010b9cb4c50c (patch)
treee342f7578767a7317f27aa614cc422f0e5023d9c /pkgs/tools/security/expliot
parent61f179636656e0839a9a4d1609f4f7cff1ca6b92 (diff)
expliot: releax pynetdicom constraint
Diffstat (limited to 'pkgs/tools/security/expliot')
-rw-r--r--pkgs/tools/security/expliot/default.nix12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkgs/tools/security/expliot/default.nix b/pkgs/tools/security/expliot/default.nix
index 2a3c1df0e8f74..848ee536380f2 100644
--- a/pkgs/tools/security/expliot/default.nix
+++ b/pkgs/tools/security/expliot/default.nix
@@ -22,8 +22,6 @@ buildPythonApplication rec {
   pname = "expliot";
   version = "0.9.8";
 
-  disabled = python3.pythonOlder "3.7";
-
   src = fetchFromGitLab {
     owner = "expliot_framework";
     repo = pname;
@@ -50,10 +48,18 @@ 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"
+  '';
+
   # Project has no tests
   doCheck = false;
 
-  pythonImportsCheck = [ "expliot" ];
+  pythonImportsCheck = [
+    "expliot"
+  ];
 
   meta = with lib; {
     description = "IoT security testing and exploitation framework";