pythonPackages.uamqp: fix the build on Darwin

This commit is contained in:
Wael M. Nasreddine 2019-07-16 14:41:42 -07:00
parent 5995755b68
commit 736f645da1
No known key found for this signature in database
GPG Key ID: FD437548E0BF0F5F
2 changed files with 13 additions and 6 deletions

View File

@ -1,12 +1,15 @@
{ lib { CFNetwork
, Security
, buildPythonPackage , buildPythonPackage
, fetchPypi
, cmake
, openssl
, six
, certifi , certifi
, cmake
, enum34 , enum34
, fetchPypi
, isPy3k , isPy3k
, lib
, openssl
, stdenv
, six
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -24,6 +27,8 @@ buildPythonPackage rec {
six six
] ++ lib.optionals (!isPy3k) [ ] ++ lib.optionals (!isPy3k) [
enum34 enum34
] ++ lib.optionals stdenv.isDarwin [
CFNetwork Security
]; ];
nativeBuildInputs = [ nativeBuildInputs = [

View File

@ -1138,7 +1138,9 @@ in {
toggl-cli = callPackage ../development/python-modules/toggl-cli { }; toggl-cli = callPackage ../development/python-modules/toggl-cli { };
uamqp = callPackage ../development/python-modules/uamqp { }; uamqp = callPackage ../development/python-modules/uamqp {
inherit (pkgs.darwin.apple_sdk.frameworks) CFNetwork Security;
};
unifi = callPackage ../development/python-modules/unifi { }; unifi = callPackage ../development/python-modules/unifi { };