diff options
author | Robin Gloster <mail@glob.in> | 2019-09-13 19:47:04 +0200 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2019-09-13 20:20:09 +0200 |
commit | 8b34d843c6f24168787cad90912e0fa20d11d6d5 (patch) | |
tree | 1bdf6c8aab458a3caa29a4221fa45ee4332531da | |
parent | a441eaa7b16ee0e264f74303ef36e37ecb3fe9dc (diff) | |
download | nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar.gz nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar.bz2 nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar.lz nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar.xz nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.tar.zst nixpkgs-8b34d843c6f24168787cad90912e0fa20d11d6d5.zip |
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
-rw-r--r-- | pkgs/development/python-modules/cryptography/default.nix | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 6b20b4b570a..2a5d4fa4757 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -1,6 +1,7 @@ { stdenv , buildPythonPackage , fetchPypi +, fetchpatch , openssl , cryptography_vectors , darwin @@ -49,10 +50,18 @@ buildPythonPackage rec { pytz ]; + # remove when https://github.com/pyca/cryptography/issues/4998 is fixed checkPhase = '' - py.test --disable-pytest-warnings tests + py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve' ''; + patches = [ + (fetchpatch { + url = "https://github.com/pyca/cryptography/commit/e575e3d482f976c4a1f3203d63ea0f5007a49a2a.patch"; + sha256 = "0vg9prqsizd6gzh5j7lscsfxzxlhz7pacvzhgqmj1vhdhjwbblcp"; + }) + ]; + # IOKit's dependencies are inconsistent between OSX versions, so this is the best we # can do until nix 1.11's release __impureHostDeps = [ "/usr/lib" ]; |