3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/azure-servicebus/default.nix

44 lines
868 B
Nix

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