Skip to content

Commit

Permalink
pythonPackages.pyopenssl: 17.0.0 -> 17.2.0
Browse files Browse the repository at this point in the history
test_fallback_default_verify_paths tries to look up certificates from
the compiled-in default path in OpenSSL which doesn't work in a sandbox.

flaky and pretend are new test-time dependencies.
  • Loading branch information
dezgeg authored and FRidh committed Sep 13, 2017
1 parent edced8f commit 38e5675
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -18184,21 +18184,16 @@ 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
sed -i 's/test_fallback_default_verify_paths/noop/' tests/test_ssl.py
'';

checkPhase = ''
Expand All @@ -18212,7 +18207,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 = [ self.flaky pkgs.openssl self.pretend self.pytest pkgs.glibcLocales ];
propagatedBuildInputs = [ self.cryptography self.pyasn1 self.idna ];
};

Expand Down

0 comments on commit 38e5675

Please sign in to comment.