From 41c13780cbce8ce5020b36d54150924461272964 Mon Sep 17 00:00:00 2001 From: Robert Schütz Date: Tue, 21 Aug 2018 02:47:41 +0200 Subject: 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. --- pkgs/development/python-modules/cryptography/default.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix index 2a8736e29de3..52244ae4d961 100644 --- a/pkgs/development/python-modules/cryptography/default.nix +++ b/pkgs/development/python-modules/cryptography/default.nix @@ -20,12 +20,10 @@ , hypothesis }: -let - version = "2.3"; -in assert version == cryptography_vectors.version; buildPythonPackage rec { +buildPythonPackage rec { # also bump cryptography_vectors pname = "cryptography"; - inherit version; + version = "2.3"; src = fetchPypi { 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 # can do until nix 1.11's release __impureHostDeps = [ "/usr/lib" ]; -} \ No newline at end of file +} -- cgit 1.4.1