1{ lib
2, buildPythonPackage
3, fetchPypi
4, python
5, isPy3k
6, msrestazure
7, azure-common
8, azure-mgmt-nspkg
9}:
10
11buildPythonPackage rec {
12 pname = "azure-mgmt-relay";
13 version = "0.2.0";
14
15 src = fetchPypi {
16 inherit pname version;
17 extension = "zip";
18 sha256 = "0s5z4cil750wn770m0hdzcrpshj4bj1bglkkvxdx9l9054dk9s57";
19 };
20
21 propagatedBuildInputs = [
22 msrestazure
23 azure-common
24 azure-mgmt-nspkg
25 ];
26
27 # still needed when overriding to previous versions
28 # E.g. azure-cli
29 postInstall = lib.optionalString isPy3k ''
30 rm -f $out/${python.sitePackages}/azure/{,mgmt/}__init__.py
31 '';
32
33 # has no tests
34 doCheck = false;
35
36 meta = with lib; {
37 description = "This is the Microsoft Azure Relay Client Library";
38 homepage = "https://github.com/Azure/azure-sdk-for-python";
39 license = licenses.mit;
40 maintainers = with maintainers; [ mwilsoninsight ];
41 };
42}