Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python.pkgs.cryptography: fix/ignore broken tests

Broken tests by openssl 1.1.1d, added patch and skipped one test

Issue for skipped test: https://github.com/pyca/cryptography/issues/4998

+10 -1
+10 -1
pkgs/development/python-modules/cryptography/default.nix
··· 1 { stdenv 2 , buildPythonPackage 3 , fetchPypi 4 , openssl 5 , cryptography_vectors 6 , darwin ··· 49 pytz 50 ]; 51 52 checkPhase = '' 53 - py.test --disable-pytest-warnings tests 54 ''; 55 56 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we 57 # can do until nix 1.11's release
··· 1 { stdenv 2 , buildPythonPackage 3 , fetchPypi 4 + , fetchpatch 5 , openssl 6 , cryptography_vectors 7 , darwin ··· 50 pytz 51 ]; 52 53 + # remove when https://github.com/pyca/cryptography/issues/4998 is fixed 54 checkPhase = '' 55 + py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve' 56 ''; 57 + 58 + patches = [ 59 + (fetchpatch { 60 + url = "https://github.com/pyca/cryptography/commit/e575e3d482f976c4a1f3203d63ea0f5007a49a2a.patch"; 61 + sha256 = "0vg9prqsizd6gzh5j7lscsfxzxlhz7pacvzhgqmj1vhdhjwbblcp"; 62 + }) 63 + ]; 64 65 # IOKit's dependencies are inconsistent between OSX versions, so this is the best we 66 # can do until nix 1.11's release