pyopenssl: 17.0.0 -> 17.2.0

An attempt to fix tests under 32bit linux to unblock nix build

(cherry picked from commit 3418e73469)
Signed-off-by: Domen Kožar <domen@dev.si>
This commit is contained in:
Domen Kožar 2017-09-12 13:37:03 +02:00
parent 6abb29f460
commit 8081505173
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246

View File

@ -18184,21 +18184,17 @@ in {
pyopenssl = buildPythonPackage rec {
name = "pyopenssl-${version}";
version = "17.0.0";
version = "17.2.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/pyOpenSSL/pyOpenSSL-${version}.tar.gz";
sha256 = "1pdg1gpmkzj8yasg6cmkhcivxcdp4c12nif88y4qvsxq5ffzxas8";
};
patches = pkgs.fetchpatch {
url = "https://github.com/pyca/pyopenssl/commit/"
+ "a40898b5f1d472f9449a344f703fa7f90cddc21d.patch";
sha256 = "0bdfrhfvdfxhfknn46s4db23i3hww6ami2r1l5rfrri0pn8b8mh7";
sha256 = "0d283g4zi0hr9papd24mjl70mi15gyzq6fx618rizi87dgipqqax";
};
preCheck = ''
sed -i 's/test_set_default_verify_paths/noop/' tests/test_ssl.py
# https://github.com/pyca/pyopenssl/issues/692
sed -i 's/test_fallback_default_verify_paths/noop/' tests/test_ssl.py
'';
checkPhase = ''
@ -18212,7 +18208,7 @@ in {
# for one example, but I've also seen ContextTests.test_set_verify_callback_exception fail.
doCheck = !stdenv.isDarwin;
buildInputs = [ pkgs.openssl self.pytest pkgs.glibcLocales ];
buildInputs = [ pkgs.openssl self.pytest pkgs.glibcLocales self.pretend self.flaky ];
propagatedBuildInputs = [ self.cryptography self.pyasn1 self.idna ];
};