From 36b8746594e498700355b1f4f9e0ac2dc001efc2 Mon Sep 17 00:00:00 2001 From: Frederik Rietdijk Date: Tue, 18 Apr 2017 10:17:40 +0200 Subject: [PATCH] pythonPackages.cryptography: 1.7.2 -> 1.8.1 --- pkgs/top-level/python-packages.nix | 34 +++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 10 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c7bc1115bd20..6e7207e3a49c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4544,25 +4544,39 @@ in { cryptography = buildPythonPackage rec { # also bump cryptography_vectors - name = "cryptography-${version}"; - version = "1.7.2"; + pname = "cryptography"; + name = "${pname}${version}"; + version = "1.8.1"; - src = pkgs.fetchurl { - url = "mirror://pypi/c/cryptography/${name}.tar.gz"; - sha256 = "1ad9zmzi31fnz31qfchxcwiydvlxq88xndlgsvzr7m537n5vd347"; + src = fetchPypi { + inherit pname version; + sha256 = "323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190"; }; - buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors - self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ] + buildInputs = [ pkgs.openssl self.cryptography_vectors ] ++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security; - propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules pytz ] - ++ optional (pythonOlder "3.4") self.enum34; + propagatedBuildInputs = with self; [ + idna + asn1crypto + packaging + six + ] ++ optional (pythonOlder "3.4") enum34 + ++ optional (pythonOlder "3.3") ipaddress + ++ optional (!isPyPy) cffi; + + checkInputs = with self; [ + pytest + pretend + iso8601 + pytz + hypothesis + ]; # The test assumes that if we're on Sierra or higher, that we use `getentropy`, but for binary # compatibility with pre-Sierra for binary caches, we hide that symbol so the library doesn't # use it. This boils down to them checking compatibility with `getentropy` in two different places, # so let's neuter the second test. - patchPhase = '' + postPatch = '' substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"' '';