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
```
This commit is contained in:
Ivan Babrou 2021-05-19 10:02:23 -07:00 committed by Jonathan Ringer
parent 8a5e4be6b6
commit 703579f722
2 changed files with 5 additions and 2 deletions

View file

@ -15,6 +15,7 @@
, pytest , pytest
, pytest-subtests , pytest-subtests
, pretend , pretend
, libiconv
, iso8601 , iso8601
, pytz , pytz
, hypothesis , hypothesis
@ -48,7 +49,7 @@ buildPythonPackage rec {
] ++ (with rustPlatform; [ rust.cargo rust.rustc ]); ] ++ (with rustPlatform; [ rust.cargo rust.rustc ]);
buildInputs = [ openssl ] buildInputs = [ openssl ]
++ lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security; ++ lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.Security libiconv ];
propagatedBuildInputs = [ propagatedBuildInputs = [
packaging packaging
six six

View file

@ -1590,7 +1590,9 @@ in {
cryptacular = callPackage ../development/python-modules/cryptacular { }; cryptacular = callPackage ../development/python-modules/cryptacular { };
cryptography = callPackage ../development/python-modules/cryptography { }; cryptography = callPackage ../development/python-modules/cryptography {
inherit (pkgs.darwin) libiconv;
};
cryptography_vectors = callPackage ../development/python-modules/cryptography/vectors.nix { }; cryptography_vectors = callPackage ../development/python-modules/cryptography/vectors.nix { };