depot/third_party/nixpkgs/pkgs/development/python-modules/azure-servicebus/default.nix
Default email 4cb23072fc Project import generated by Copybara.
GitOrigin-RevId: 6d8215281b2f87a5af9ed7425a26ac575da0438f
2022-01-20 00:45:15 +01:00

48 lines
921 B
Nix

{ lib
, azure-common
, azure-core
, buildPythonPackage
, fetchPypi
, futures ? null
, isodate
, isPy3k
, msrestazure
, uamqp
}:
buildPythonPackage rec {
pname = "azure-servicebus";
version = "7.5.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "e97a069c6a73fce3042a5ef0d438cc564152cfbcc2e7db6f7a19fbd51bb3555b";
};
propagatedBuildInputs = [
azure-common
azure-core
isodate
msrestazure
uamqp
] ++ lib.optionals (!isPy3k) [
futures
];
# has no tests
doCheck = false;
# python2 will fail due to pep 420
pythonImportsCheck = lib.optionals isPy3k [
"azure.servicebus"
];
meta = with lib; {
description = "Microsoft Azure Service Bus Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ maxwilson ];
};
}