2019-04-29 23:56:48 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, uamqp
|
|
|
|
, azure-common
|
2020-11-28 17:45:50 +01:00
|
|
|
, azure-core
|
2019-04-29 23:56:48 +02:00
|
|
|
, msrestazure
|
2021-03-24 17:45:56 +01:00
|
|
|
, futures ? null
|
2019-04-29 23:56:48 +02:00
|
|
|
, isPy3k
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-servicebus";
|
2021-06-08 22:02:06 +02:00
|
|
|
version = "7.3.0";
|
2019-04-29 23:56:48 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2021-06-08 22:02:06 +02:00
|
|
|
sha256 = "sha256-NigQxqZjekZjlu6wSrziVwbEBclxfwSK4svd0eHPKr8=";
|
2019-04-29 23:56:48 +02:00
|
|
|
};
|
|
|
|
|
2021-01-15 20:56:35 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-04-29 23:56:48 +02:00
|
|
|
uamqp
|
|
|
|
azure-common
|
2020-11-28 17:45:50 +01:00
|
|
|
azure-core
|
2019-04-29 23:56:48 +02:00
|
|
|
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; {
|
2021-06-08 22:02:06 +02:00
|
|
|
description = "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;
|
2020-11-15 15:35:46 +01:00
|
|
|
maintainers = with maintainers; [ maxwilson ];
|
2019-04-29 23:56:48 +02:00
|
|
|
};
|
|
|
|
}
|