mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
pythonPackages.uamqp: Fix build on darwin
This commit is contained in:
parent
974201c4ed
commit
5c4843d638
@ -1,12 +1,17 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
{ stdenv
|
||||||
|
, lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, fetchpatch
|
||||||
|
, isPy3k
|
||||||
, certifi
|
, certifi
|
||||||
, CFNetwork
|
|
||||||
, cmake
|
, cmake
|
||||||
, enum34
|
, enum34
|
||||||
, openssl
|
, openssl
|
||||||
, Security
|
|
||||||
, six
|
, six
|
||||||
, stdenv
|
, CFNetwork
|
||||||
|
, CoreFoundation
|
||||||
|
, Security
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -18,6 +23,15 @@ buildPythonPackage rec {
|
|||||||
sha256 = "sha256-zDUFe/yMCThn+qJqDekMrUHEf1glGxBw4pioExLLoqg=";
|
sha256 = "sha256-zDUFe/yMCThn+qJqDekMrUHEf1glGxBw4pioExLLoqg=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/Azure/azure-c-shared-utility/commit/52ab2095649b5951e6af77f68954209473296983.patch";
|
||||||
|
sha256 = "06pxhdpkv94pv3lhj1vy0wlsqsdznz485bvg3zafj67r55g40lhd";
|
||||||
|
stripLen = "2";
|
||||||
|
extraPrefix = "src/vendor/azure-uamqp-c/deps/azure-c-shared-utility/";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
openssl
|
openssl
|
||||||
certifi
|
certifi
|
||||||
@ -25,7 +39,9 @@ buildPythonPackage rec {
|
|||||||
] ++ lib.optionals (!isPy3k) [
|
] ++ lib.optionals (!isPy3k) [
|
||||||
enum34
|
enum34
|
||||||
] ++ lib.optionals stdenv.isDarwin [
|
] ++ lib.optionals stdenv.isDarwin [
|
||||||
CFNetwork Security
|
CoreFoundation
|
||||||
|
CFNetwork
|
||||||
|
Security
|
||||||
];
|
];
|
||||||
|
|
||||||
dontUseCmakeConfigure = true;
|
dontUseCmakeConfigure = true;
|
||||||
|
@ -7797,8 +7797,9 @@ in {
|
|||||||
|
|
||||||
tzlocal = callPackage ../development/python-modules/tzlocal { };
|
tzlocal = callPackage ../development/python-modules/tzlocal { };
|
||||||
|
|
||||||
uamqp =
|
uamqp = callPackage ../development/python-modules/uamqp {
|
||||||
callPackage ../development/python-modules/uamqp { inherit (pkgs.darwin.apple_sdk.frameworks) CFNetwork Security; };
|
inherit (pkgs.darwin.apple_sdk.frameworks) CFNetwork CoreFoundation Security;
|
||||||
|
};
|
||||||
|
|
||||||
ua-parser = callPackage ../development/python-modules/ua-parser { };
|
ua-parser = callPackage ../development/python-modules/ua-parser { };
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user