about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cryptography
diff options
context:
space:
mode:
authorJonathan Ringer <jonringer117@gmail.com>2020-04-07 12:36:45 -0700
committerFrederik Rietdijk <fridh@fridh.nl>2020-04-10 12:04:47 +0200
commit2e6fb229923cc2fd7275d26ea87f22898bdc24fa (patch)
tree0088bd75323d08714c5226794ac58cc50369a5be /pkgs/development/python-modules/cryptography
parent2420184727068aac826c056e4dbc7ad98e6435ee (diff)
python2Packages.cryptography: add missing ipaddress dependency
Diffstat (limited to 'pkgs/development/python-modules/cryptography')
-rw-r--r--pkgs/development/python-modules/cryptography/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix
index 8d655de97b898..22f647b216d52 100644
--- a/pkgs/development/python-modules/cryptography/default.nix
+++ b/pkgs/development/python-modules/cryptography/default.nix
@@ -2,6 +2,8 @@
 , buildPythonPackage
 , fetchPypi
 , fetchpatch
+, isPy27
+, ipaddress
 , openssl
 , cryptography_vectors
 , darwin
@@ -33,7 +35,8 @@ buildPythonPackage rec {
   propagatedBuildInputs = [
     packaging
     six
-  ] ++ stdenv.lib.optional (!isPyPy) cffi;
+  ] ++ stdenv.lib.optional (!isPyPy) cffi
+  ++ stdenv.lib.optionals isPy27 [ ipaddress ];
 
   checkInputs = [
     cryptography_vectors