From 736f645da1ec45dc80961d3a3d7b94bb652f2614 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 16 Jul 2019 14:41:42 -0700 Subject: [PATCH] pythonPackages.uamqp: fix the build on Darwin --- pkgs/development/python-modules/uamqp/default.nix | 15 ++++++++++----- pkgs/top-level/python-packages.nix | 4 +++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/uamqp/default.nix b/pkgs/development/python-modules/uamqp/default.nix index b7f244730b1c..ff0c61c5e077 100644 --- a/pkgs/development/python-modules/uamqp/default.nix +++ b/pkgs/development/python-modules/uamqp/default.nix @@ -1,12 +1,15 @@ -{ lib +{ CFNetwork +, Security , buildPythonPackage -, fetchPypi -, cmake -, openssl -, six , certifi +, cmake , enum34 +, fetchPypi , isPy3k +, lib +, openssl +, stdenv +, six }: buildPythonPackage rec { @@ -24,6 +27,8 @@ buildPythonPackage rec { six ] ++ lib.optionals (!isPy3k) [ enum34 + ] ++ lib.optionals stdenv.isDarwin [ + CFNetwork Security ]; nativeBuildInputs = [ diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7ac3d14289b5..2a8133108659 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1138,7 +1138,9 @@ in { 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 { };