2021-01-16 15:00:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, isPy3k
|
2019-04-29 21:43:31 +00:00
|
|
|
, certifi
|
2019-07-16 21:41:42 +00:00
|
|
|
, cmake
|
2019-04-29 21:43:31 +00:00
|
|
|
, enum34
|
2019-07-16 21:41:42 +00:00
|
|
|
, openssl
|
|
|
|
, six
|
2021-01-16 15:00:03 +00:00
|
|
|
, CFNetwork
|
|
|
|
, CoreFoundation
|
|
|
|
, Security
|
2019-04-29 21:43:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uamqp";
|
2021-05-06 07:00:15 +00:00
|
|
|
version = "1.4.0";
|
2019-04-29 21:43:31 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-06 07:00:15 +00:00
|
|
|
sha256 = "sha256-XzfiLzRK1/DCmnxPW/H+KqnBuCbpYPawS2JnTQq+Vbw=";
|
2019-04-29 21:43:31 +00:00
|
|
|
};
|
|
|
|
|
2021-01-16 15:00:03 +00:00
|
|
|
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/";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-04-29 21:43:31 +00:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
2019-07-16 21:41:42 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-01-16 15:00:03 +00:00
|
|
|
CoreFoundation
|
|
|
|
CFNetwork
|
|
|
|
Security
|
2019-04-29 21:43:31 +00:00
|
|
|
];
|
|
|
|
|
2019-09-14 01:16:34 +00:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-04-29 21:43:31 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "An AMQP 1.0 client library for Python";
|
2020-03-16 03:02:47 +00:00
|
|
|
homepage = "https://github.com/Azure/azure-uamqp-python";
|
2019-04-29 21:43:31 +00:00
|
|
|
license = licenses.mit;
|
2020-11-15 14:35:46 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2019-04-29 21:43:31 +00:00
|
|
|
};
|
|
|
|
}
|