1{ lib
2, buildPythonPackage
3, fetchPypi
4, uamqp
5, azure-common
6, msrestazure
7, futures
8, isPy3k
9}:
10
11buildPythonPackage rec {
12 pname = "azure-servicebus";
13 version = "0.50.1";
14
15 src = fetchPypi {
16 inherit pname version;
17 extension = "zip";
18 sha256 = "0i8ls5h2ny12h9gnqwyq13ysvxgdq7b1kxirj4n58dfy94a182gv";
19 };
20
21 buildInputs = [
22 uamqp
23 azure-common
24 msrestazure
25 ] ++ lib.optionals (!isPy3k) [
26 futures
27 ];
28
29 # has no tests
30 doCheck = false;
31
32 meta = with lib; {
33 description = "This is the Microsoft Azure Service Bus Client Library";
34 homepage = https://github.com/Azure/azure-sdk-for-python/free/master/azure-servicebus;
35 license = licenses.mit;
36 maintainers = with maintainers; [ mwilsoninsight ];
37 };
38}