summary refs log tree commit diff
path: root/pkgs/development/python-modules/sslyze
diff options
context:
space:
mode:
authorVincent Haupert <mail@vincent-haupert.de>2021-05-08 11:00:24 +0200
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-08 11:41:56 -0700
commitf43b4c18d8a8e1ad65a9f363e69468f248b4a7ba (patch)
tree17bb0603331f4720bc5d929665c92d7579bf4240 /pkgs/development/python-modules/sslyze
parent165c28d463f23526df3bc9deaf616e29094e32ad (diff)
downloadnixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar.gz
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar.bz2
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar.lz
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar.xz
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.tar.zst
nixpkgs-f43b4c18d8a8e1ad65a9f363e69468f248b4a7ba.zip
python3Packages.sslyze: 3.1.0 -> 4.1.0
Diffstat (limited to 'pkgs/development/python-modules/sslyze')
-rw-r--r--pkgs/development/python-modules/sslyze/default.nix39
1 files changed, 22 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/sslyze/default.nix b/pkgs/development/python-modules/sslyze/default.nix
index 991f85c900e..5680b4bd36b 100644
--- a/pkgs/development/python-modules/sslyze/default.nix
+++ b/pkgs/development/python-modules/sslyze/default.nix
@@ -6,39 +6,44 @@
 , typing-extensions
 , faker
 , pytestCheckHook
+, pythonOlder
 }:
 
 buildPythonPackage rec {
   pname = "sslyze";
-  version = "3.1.0";
+  version = "4.1.0";
+  disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "nabla-c0d3";
     repo = pname;
     rev = version;
-    sha256 = "02p0lgpkfq88dys0dqw0z8bpg9g8pds2lvs9awd9f2w5cb1pwr83";
+    hash = "sha256-oSTKNiECczlPAbv5Azc023PcquFbnlC5O+8tVgNcUW0=";
   };
 
   patchPhase = ''
     substituteInPlace setup.py \
-      --replace "cryptography>=2.6,<3.3" "cryptography>=2.6,<4.0"
+      --replace "cryptography>=2.6,<3.5" "cryptography>=2.6,<4.0"
   '';
 
   checkInputs = [ pytestCheckHook ];
 
-  checkPhase = ''
-    # Most of the tests are online; hence, applicable tests are listed
-    # explicitly here
-    pytest \
-      tests/test_main.py \
-      tests/test_scanner.py \
-      tests/cli_tests/test_console_output.py \
-      tests/cli_tests/test_json_output.py \
-      tests/cli_tests/test_server_string_parser.py \
-      tests/plugins_tests/test_scan_commands.py \
-      tests/plugins_tests/certificate_info/test_certificate_utils.py \
-      -k "not (TestScanner and test_client_certificate_missing)"
-  '';
+  # Most of the tests are online; hence, applicable tests are listed
+  # explicitly here
+  pytestFlagsArray = [
+    "tests/test_main.py"
+    "tests/test_scanner.py"
+    "tests/cli_tests/test_console_output.py"
+    "tests/cli_tests/test_json_output.py"
+    "tests/cli_tests/test_server_string_parser.py"
+    "tests/plugins_tests/test_scan_commands.py"
+    "tests/plugins_tests/certificate_info/test_certificate_utils.py"
+  ];
+
+  disabledTests = [
+    "test_error_client_certificate_needed"
+  ];
+
   pythonImportsCheck = [ "sslyze" ];
 
   propagatedBuildInputs = [ nassl cryptography typing-extensions faker ];
@@ -47,7 +52,7 @@ buildPythonPackage rec {
     homepage = "https://github.com/nabla-c0d3/sslyze";
     description = "Fast and powerful SSL/TLS scanning library";
     platforms = platforms.linux ++ platforms.darwin;
-    license = licenses.agpl3;
+    license = licenses.agpl3Only;
     maintainers = with maintainers; [ veehaitch ];
   };
 }