Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / azure-mgmt-commerce / default.nix
blob32e6cebd1f59a7ee9551bd69b9558dc557b050c6
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , msrestazure
5 , azure-common
6 , azure-mgmt-core
7 , azure-mgmt-nspkg
8 , python
9 , isPy3k
12 buildPythonPackage rec {
13   pname = "azure-mgmt-commerce";
14   version = "6.0.0";
16   src = fetchPypi {
17     inherit pname version;
18     extension = "zip";
19     sha256 = "6f5447395503b2318f451d24f8021ee08db1cac44f1c3337ea690700419626b6";
20   };
22   propagatedBuildInputs = [
23     msrestazure
24     azure-common
25     azure-mgmt-core
26     azure-mgmt-nspkg
27   ];
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   '';
36   pythonNamespaces = [ "azure.mgmt" ];
38   # has no tests
39   doCheck = false;
40   pythonImportsCheck = [ "azure.mgmt.commerce" ];
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; [ maxwilson jonringer ];
47   };