1{ lib
2, buildPythonPackage
3, fetchPypi
4, msrestazure
5, azure-common
6, azure-mgmt-core
7, azure-mgmt-nspkg
8}:
9
10buildPythonPackage rec {
11 pname = "azure-mgmt-relay";
12 version = "1.1.0";
13
14 src = fetchPypi {
15 inherit pname version;
16 extension = "zip";
17 sha256 = "c93b7550e64b6734bf23ce57ca974a3ea929b734c58d1fe3669728c4fd2d2eb3";
18 };
19
20 propagatedBuildInputs = [
21 msrestazure
22 azure-common
23 azure-mgmt-core
24 azure-mgmt-nspkg
25 ];
26
27 preBuild = ''
28 rm -f azure_bdist_wheel.py
29 substituteInPlace setup.cfg \
30 --replace "azure-namespace-package = azure-mgmt-nspkg" ""
31 '';
32
33 pythonNamespaces = [ "azure.mgmt" ];
34
35 # has no tests
36 doCheck = false;
37 pythonImportsCheck = [ "azure.mgmt.relay" ];
38
39 meta = with lib; {
40 description = "This is the Microsoft Azure Relay Client Library";
41 homepage = "https://github.com/Azure/azure-sdk-for-python";
42 license = licenses.mit;
43 maintainers = with maintainers; [ maxwilson ];
44 };
45}