2021-01-16 15:00:03 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, fetchpatch
|
|
|
|
, isPy3k
|
2019-04-29 22:43:31 +01:00
|
|
|
, certifi
|
2019-07-16 22:41:42 +01:00
|
|
|
, cmake
|
2019-04-29 22:43:31 +01:00
|
|
|
, enum34
|
2019-07-16 22:41:42 +01:00
|
|
|
, openssl
|
|
|
|
, six
|
2021-01-16 15:00:03 +00:00
|
|
|
, CFNetwork
|
|
|
|
, CoreFoundation
|
|
|
|
, Security
|
2019-04-29 22:43:31 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uamqp";
|
2021-01-15 20:11:47 +00:00
|
|
|
version = "1.2.13";
|
2019-04-29 22:43:31 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-01-15 20:11:47 +00:00
|
|
|
sha256 = "sha256-zDUFe/yMCThn+qJqDekMrUHEf1glGxBw4pioExLLoqg=";
|
2019-04-29 22:43:31 +01: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 22:43:31 +01:00
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
2019-07-16 22:41:42 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
2021-01-16 15:00:03 +00:00
|
|
|
CoreFoundation
|
|
|
|
CFNetwork
|
|
|
|
Security
|
2019-04-29 22:43:31 +01:00
|
|
|
];
|
|
|
|
|
2019-09-14 02:16:34 +01:00
|
|
|
dontUseCmakeConfigure = true;
|
|
|
|
|
2019-04-29 22:43:31 +01: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 22:43:31 +01:00
|
|
|
license = licenses.mit;
|
2020-11-15 14:35:46 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2019-04-29 22:43:31 +01:00
|
|
|
};
|
|
|
|
}
|