mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-30 19:02:57 +00:00
python37Packages.cryptography: 2.7 -> 2.8
Changelog: https://cryptography.io/en/latest/changelog/#v2-8 Important changes: - Deprecated support for OpenSSL 1.0.1. Support will be removed in cryptography 2.9. - cryptography no longer depends on asn1crypto. - Added support for Python 3.8.
This commit is contained in:
parent
5b1f864242
commit
baf5494330
@ -5,7 +5,6 @@
|
||||
, openssl
|
||||
, cryptography_vectors
|
||||
, darwin
|
||||
, asn1crypto
|
||||
, packaging
|
||||
, six
|
||||
, pythonOlder
|
||||
@ -22,11 +21,11 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cryptography";
|
||||
version = "2.7"; # Also update the hash in vectors.nix
|
||||
version = "2.8"; # Also update the hash in vectors.nix
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1inlnr36kl36551c9rcad99jmhk81v33by3glkadwdcgmi17fd76";
|
||||
sha256 = "0l8nhw14npknncxdnp7n4hpmjyscly6g7fbivyxkjwvlv071zniw";
|
||||
};
|
||||
|
||||
outputs = [ "out" "dev" ];
|
||||
@ -34,7 +33,6 @@ buildPythonPackage rec {
|
||||
buildInputs = [ openssl ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
propagatedBuildInputs = [
|
||||
asn1crypto
|
||||
packaging
|
||||
six
|
||||
] ++ stdenv.lib.optional (pythonOlder "3.4") enum34
|
||||
@ -55,13 +53,6 @@ buildPythonPackage rec {
|
||||
py.test --disable-pytest-warnings tests -k 'not load_ecdsa_no_named_curve'
|
||||
'';
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
url = "https://github.com/pyca/cryptography/commit/e575e3d482f976c4a1f3203d63ea0f5007a49a2a.patch";
|
||||
sha256 = "0vg9prqsizd6gzh5j7lscsfxzxlhz7pacvzhgqmj1vhdhjwbblcp";
|
||||
})
|
||||
];
|
||||
|
||||
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
||||
# can do until nix 1.11's release
|
||||
__impureHostDeps = [ "/usr/lib" ];
|
||||
|
@ -7,7 +7,7 @@ buildPythonPackage rec {
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1g38zw90510azyfrj6mxbslx2gp9yrnv5dac0w2819k9ssdznbgi";
|
||||
sha256 = "05pi3shqz0fgvy0d5yazza67bbnam8fkrx2ayrrclgkaqms23lvc";
|
||||
};
|
||||
|
||||
# No tests included
|
||||
|
Loading…
Reference in New Issue
Block a user