3
0
Fork 0
forked from mirrors/nixpkgs

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
This commit is contained in:
Robin Gloster 2019-09-13 19:47:04 +02:00
parent a441eaa7b1
commit 8b34d843c6
No known key found for this signature in database
GPG key ID: D5C458DF6DD97EDF

View file

@ -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" ];