2019-04-29 22:56:48 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, uamqp
|
|
|
|
, azure-common
|
2020-11-28 16:45:50 +00:00
|
|
|
, azure-core
|
2019-04-29 22:56:48 +01:00
|
|
|
, msrestazure
|
|
|
|
, futures
|
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-servicebus";
|
2021-01-15 19:55:31 +00:00
|
|
|
version = "7.0.1";
|
2019-04-29 22:56:48 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-01-15 19:55:31 +00:00
|
|
|
sha256 = "46d1e7b9da537da831c3184d42d3e2bc3c7ab9234e204a9d4c2e5dc54010721b";
|
2019-04-29 22:56:48 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 19:56:35 +00:00
|
|
|
propagatedBuildInputs = [
|
2019-04-29 22:56:48 +01:00
|
|
|
uamqp
|
|
|
|
azure-common
|
2020-11-28 16:45:50 +00:00
|
|
|
azure-core
|
2019-04-29 22:56:48 +01:00
|
|
|
msrestazure
|
|
|
|
] ++ lib.optionals (!isPy3k) [
|
|
|
|
futures
|
|
|
|
];
|
|
|
|
|
|
|
|
# has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-03 01:50:33 +01:00
|
|
|
# python2 will fail due to pep 420
|
|
|
|
pythonImportsCheck = lib.optionals isPy3k [ "azure.servicebus" ];
|
|
|
|
|
2019-04-29 22:56:48 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "This is the Microsoft Azure Service Bus Client Library";
|
2019-10-19 17:47:11 +01:00
|
|
|
homepage = "https://github.com/Azure/azure-sdk-for-python";
|
2019-04-29 22:56:48 +01:00
|
|
|
license = licenses.mit;
|
2020-11-15 14:35:46 +00:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2019-04-29 22:56:48 +01:00
|
|
|
};
|
|
|
|
}
|