summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-08-21 02:47:41 +0200
committerRobin Gloster <mail@glob.in>2018-08-21 19:26:54 +0200
commit41c13780cbce8ce5020b36d54150924461272964 (patch)
tree9edb53ccf0cd2371683e8121e77932f75b63b73c
parent5786cba889356447d326c2129516be28b933f0e4 (diff)
downloadnixlib-41c13780cbce8ce5020b36d54150924461272964.tar
nixlib-41c13780cbce8ce5020b36d54150924461272964.tar.gz
nixlib-41c13780cbce8ce5020b36d54150924461272964.tar.bz2
nixlib-41c13780cbce8ce5020b36d54150924461272964.tar.lz
nixlib-41c13780cbce8ce5020b36d54150924461272964.tar.xz
nixlib-41c13780cbce8ce5020b36d54150924461272964.tar.zst
nixlib-41c13780cbce8ce5020b36d54150924461272964.zip
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.
-rw-r--r--pkgs/development/python-modules/cryptography/default.nix8
1 files 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
+}