2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, azure-common
|
2020-11-30 08:33:03 +00:00
|
|
|
, azure-core
|
2021-12-06 16:07:01 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-04-26 19:14:03 +00:00
|
|
|
, futures ? null
|
2021-12-06 16:07:01 +00:00
|
|
|
, isodate
|
2020-04-24 23:36:52 +00:00
|
|
|
, isPy3k
|
2021-12-06 16:07:01 +00:00
|
|
|
, msrestazure
|
|
|
|
, uamqp
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-servicebus";
|
2022-01-19 23:45:15 +00:00
|
|
|
version = "7.5.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2022-01-19 23:45:15 +00:00
|
|
|
sha256 = "e97a069c6a73fce3042a5ef0d438cc564152cfbcc2e7db6f7a19fbd51bb3555b";
|
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
|
|
|
azure-common
|
2020-11-30 08:33:03 +00:00
|
|
|
azure-core
|
2021-12-06 16:07:01 +00:00
|
|
|
isodate
|
2020-04-24 23:36:52 +00:00
|
|
|
msrestazure
|
2021-12-06 16:07:01 +00:00
|
|
|
uamqp
|
2020-04-24 23:36:52 +00:00
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
# python2 will fail due to pep 420
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = lib.optionals isPy3k [
|
|
|
|
"azure.servicebus"
|
|
|
|
];
|
2020-06-18 07:06:33 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Microsoft Azure Service Bus Client Library";
|
2020-04-24 23:36:52 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|