mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-12 03:56:17 +03:00
python.pkgs.cryptography: remove assert broken when overriding
When overriding cryptography and cryptograohy_vectors, the assertion fails because `version` still refers to the old value.
This commit is contained in:
parent
5786cba889
commit
41c13780cb
@ -20,12 +20,10 @@
|
|||||||
, hypothesis
|
, hypothesis
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
buildPythonPackage rec {
|
||||||
version = "2.3";
|
|
||||||
in assert version == cryptography_vectors.version; buildPythonPackage rec {
|
|
||||||
# also bump cryptography_vectors
|
# also bump cryptography_vectors
|
||||||
pname = "cryptography";
|
pname = "cryptography";
|
||||||
inherit version;
|
version = "2.3";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
@ -64,4 +62,4 @@ in assert version == cryptography_vectors.version; buildPythonPackage rec {
|
|||||||
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
# IOKit's dependencies are inconsistent between OSX versions, so this is the best we
|
||||||
# can do until nix 1.11's release
|
# can do until nix 1.11's release
|
||||||
__impureHostDeps = [ "/usr/lib" ];
|
__impureHostDeps = [ "/usr/lib" ];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user