3
0
Fork 0
forked from mirrors/nixpkgs

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

View file

@ -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"'
'';