python37Packages.cryptography: Improve the test vectors integration
This should make the management easier. The package cryptography_vectors contains the test vectors for cryptography and should therefore always have the same version. By linking the version of cryptography_vectors to cryptography, this simply cannot be forgotten.
This commit is contained in:
parent
cd8697da9f
commit
22714ad6d0
@ -20,9 +20,8 @@
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
# also bump cryptography_vectors
|
||||
pname = "cryptography";
|
||||
version = "2.5";
|
||||
version = "2.5"; # Also update the hash in vectors.nix
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
|
@ -1,9 +1,9 @@
|
||||
{ buildPythonPackage, fetchPypi, lib }:
|
||||
{ buildPythonPackage, fetchPypi, lib, cryptography }:
|
||||
|
||||
buildPythonPackage rec {
|
||||
# also bump cryptography
|
||||
pname = "cryptography_vectors";
|
||||
version = "2.5";
|
||||
# The test vectors must have the same version as the cryptography package:
|
||||
version = cryptography.version;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
@ -1481,7 +1481,7 @@ in {
|
||||
|
||||
cryptography = callPackage ../development/python-modules/cryptography { };
|
||||
|
||||
cryptography_vectors = callPackage ../development/python-modules/cryptography_vectors { };
|
||||
cryptography_vectors = callPackage ../development/python-modules/cryptography/vectors.nix { };
|
||||
|
||||
curtsies = callPackage ../development/python-modules/curtsies { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user