pythonPackages.cryptography: 1.7.2 -> 1.8.1

This commit is contained in:
Frederik Rietdijk 2017-04-18 10:17:40 +02:00
parent 51b0820935
commit 36b8746594
1 changed files with 24 additions and 10 deletions

View File

@ -4544,25 +4544,39 @@ in {
cryptography = buildPythonPackage rec { cryptography = buildPythonPackage rec {
# also bump cryptography_vectors # also bump cryptography_vectors
name = "cryptography-${version}"; pname = "cryptography";
version = "1.7.2"; name = "${pname}${version}";
version = "1.8.1";
src = pkgs.fetchurl { src = fetchPypi {
url = "mirror://pypi/c/cryptography/${name}.tar.gz"; inherit pname version;
sha256 = "1ad9zmzi31fnz31qfchxcwiydvlxq88xndlgsvzr7m537n5vd347"; sha256 = "323524312bb467565ebca7e50c8ae5e9674e544951d28a2904a50012a8828190";
}; };
buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors buildInputs = [ pkgs.openssl self.cryptography_vectors ]
self.iso8601 self.pyasn1 self.pytest_29 self.py self.hypothesis self.pytz ]
++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security; ++ optional stdenv.isDarwin pkgs.darwin.apple_sdk.frameworks.Security;
propagatedBuildInputs = with self; [ six idna ipaddress pyasn1 cffi pyasn1-modules pytz ] propagatedBuildInputs = with self; [
++ optional (pythonOlder "3.4") self.enum34; 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 # 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 # 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, # use it. This boils down to them checking compatibility with `getentropy` in two different places,
# so let's neuter the second test. # so let's neuter the second test.
patchPhase = '' postPatch = ''
substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"' substituteInPlace ./tests/hazmat/backends/test_openssl.py --replace '"16.0"' '"99.0"'
''; '';