2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, uamqp
|
|
|
|
, azure-common
|
2020-11-30 08:33:03 +00:00
|
|
|
, azure-core
|
2020-04-24 23:36:52 +00:00
|
|
|
, msrestazure
|
2021-04-26 19:14:03 +00:00
|
|
|
, futures ? null
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-servicebus";
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "7.2.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "919e81d6d9e6e098dbb7abf51d90282a73c0071846b104e70488417cd5d07863";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-01-17 00:15:33 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
uamqp
|
|
|
|
azure-common
|
2020-11-30 08:33:03 +00:00
|
|
|
azure-core
|
2020-04-24 23:36:52 +00:00
|
|
|
msrestazure
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
# python2 will fail due to pep 420
|
|
|
|
pythonImportsCheck = lib.optionals isPy3k [ "azure.servicebus" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Service Bus Client Library";
|
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
|
|
|
license = licenses.mit;
|
2020-11-19 00:13:47 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|