2019-07-16 22:41:42 +01:00
|
|
|
{ CFNetwork
|
|
|
|
, Security
|
2019-04-29 22:43:31 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, 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
|
|
|
, fetchPypi
|
2019-04-29 22:43:31 +01:00
|
|
|
, isPy3k
|
2019-07-16 22:41:42 +01:00
|
|
|
, lib
|
|
|
|
, openssl
|
|
|
|
, stdenv
|
|
|
|
, six
|
2019-04-29 22:43:31 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "uamqp";
|
|
|
|
version = "1.1.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "d3d4ff94bf290adb82fe8c19af709a21294bac9b27c821b9110165a34b922015";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
openssl
|
|
|
|
certifi
|
|
|
|
six
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
enum34
|
2019-07-16 22:41:42 +01:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
CFNetwork Security
|
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";
|
|
|
|
homepage = https://github.com/Azure/azure-uamqp-python;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mwilsoninsight ];
|
|
|
|
};
|
|
|
|
}
|