nixpkgs/pkgs/development/python-modules/azure-servicebus/default.nix

44 lines
873 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, uamqp
, azure-common
, azure-core
, msrestazure
, futures
, isPy3k
}:
buildPythonPackage rec {
pname = "azure-servicebus";
version = "7.1.0";
src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "c5b3681ce4d7a44c223ddddfdec4c8d2eadede3b11b598ac09c4dbf4b729e89b";
};
propagatedBuildInputs = [
uamqp
azure-common
azure-core
msrestazure
] ++ 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 = "This is the Microsoft Azure Service Bus Client Library";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ maxwilson ];
};
}