2019-04-29 23:56:48 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, uamqp
|
|
|
|
, azure-common
|
|
|
|
, msrestazure
|
|
|
|
, futures
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-servicebus";
|
2020-06-03 00:23:25 +02:00
|
|
|
version = "0.50.3";
|
2019-04-29 23:56:48 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2020-06-03 00:23:25 +02:00
|
|
|
sha256 = "2b1e60c81fcf5b6a5bb3ceddb27f24543f479912e39a4706a390a16d8c0a71f4";
|
2019-04-29 23:56:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
uamqp
|
|
|
|
azure-common
|
|
|
|
msrestazure
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-03 02:50:33 +02:00
|
|
|
# python2 will fail due to pep 420
|
|
|
|
pythonImportsCheck = lib.optionals isPy3k [ "azure.servicebus" ];
|
|
|
|
|
2019-04-29 23:56:48 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Service Bus Client Library";
|
2019-10-19 18:47:11 +02:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 23:56:48 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mwilsoninsight ];
|
|
|
|
};
|
|
|
|
}
|