mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-12 08:01:50 +00:00
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:
parent
a441eaa7b1
commit
8b34d843c6
|
@ -1,6 +1,7 @@
|
||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
, openssl
|
, openssl
|
||||||
, cryptography_vectors
|
, cryptography_vectors
|
||||||
, darwin
|
, darwin
|
||||||
|
@ -49,10 +50,18 @@ buildPythonPackage rec {
|
||||||
pytz
|
pytz
|
||||||
];
|
];
|
||||||
|
|
||||||
|
# remove when https://github.com/pyca/cryptography/issues/4998 is fixed
|
||||||
checkPhase = ''
|
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
|
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
||||||
# can do until nix 1.11's release
|
# can do until nix 1.11's release
|
||||||
__impureHostDeps = [ "/usr/lib" ];
|
__impureHostDeps = [ "/usr/lib" ];
|
||||||
|
|
Loading…
Reference in a new issue