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