about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cryptography
diff options
context:
space:
mode:
authorIvan Babrou <github@ivan.computer>2021-05-19 10:02:23 -0700
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-05-19 11:37:32 -0700
commit703579f722fcedc7f6253eb9f973e4185949756a (patch)
tree792df6de0a891d8e5d1ef61516cff4526b48d2cf /pkgs/development/python-modules/cryptography
parent8a5e4be6b6e50ccfe4161f3ae8209eb7a8a3a69a (diff)
python3Packages.cryptography: add missing libiconv build dependency on darwin
Fixing the following:

```
error: linking with `/nix/store/l3ca456ppdy8hi9hc0rvyr6mrm76si08-clang-wrapper-11.1.0/bin/cc` failed: exit code: 1
  = note: ld: library not found for -liconv
```
Diffstat (limited to 'pkgs/development/python-modules/cryptography')
-rw-r--r--pkgs/development/python-modules/cryptography/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cryptography/default.nix b/pkgs/development/python-modules/cryptography/default.nix
index fd6cbfc512e7e..9b35b5654e263 100644
--- a/pkgs/development/python-modules/cryptography/default.nix
+++ b/pkgs/development/python-modules/cryptography/default.nix
@@ -15,6 +15,7 @@
 , pytest
 , pytest-subtests
 , pretend
+, libiconv
 , iso8601
 , pytz
 , hypothesis
@@ -48,7 +49,7 @@ buildPythonPackage rec {
   ] ++ (with rustPlatform; [ rust.cargo rust.rustc ]);
 
   buildInputs = [ openssl ]
-             ++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
+             ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security libiconv ];
   propagatedBuildInputs = [
     packaging
     six