diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-10-06 01:07:31 -0700 |
---|---|---|
committer | Jon <jonringer@users.noreply.github.com> | 2020-10-07 00:58:44 -0700 |
commit | b18cf1b35a2b2e67645e2518e7bd67e713d1eb97 (patch) | |
tree | b8d16ef46799168ece37b8f128b72e04e55dbce2 /pkgs | |
parent | 8a75ad4925b405d231a2425a567b12df6c6eaca3 (diff) |
python3Packages.azure-mgmt-commerce: use fetchpypi
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/azure-mgmt-commerce/default.nix | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/azure-mgmt-commerce/default.nix b/pkgs/development/python-modules/azure-mgmt-commerce/default.nix index 2be5d27f82a1c..43829dcb59e36 100644 --- a/pkgs/development/python-modules/azure-mgmt-commerce/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-commerce/default.nix @@ -1,6 +1,6 @@ { lib , buildPythonPackage -, fetchFromGitHub +, fetchPypi , msrestazure , azure-common , azure-mgmt-nspkg @@ -8,34 +8,39 @@ , isPy3k }: -buildPythonPackage { +buildPythonPackage rec { pname = "azure-mgmt-commerce"; version = "1.0.1"; - src = fetchFromGitHub { - owner = "Azure"; - repo = "azure-sdk-for-python"; - rev = "ee5b47525d6c1eae3b1fd5f65b0421eab62a6e6f"; - sha256 = "0xzdn7da5c3q5knh033vbsqk36vwbm75cx8vf10x0yj58krb4kn4"; + src = fetchPypi { + inherit pname version; + extension = "zip"; + sha256 = "1hw4crkgb72ps85m2kz9kf8p2wg9qmaagk3z5nydva9g6bnq93n4"; }; - preBuild = '' - cd ./azure-mgmt-commerce - ''; - propagatedBuildInputs = [ msrestazure azure-common azure-mgmt-nspkg ]; + prePatch = '' + rm -f azure_bdist_wheel.py tox.ini + substituteInPlace setup.py \ + --replace "wheel==0.30.0" "wheel" + sed -i "/azure-namespace-package/c\ " setup.cfg + ''; + + pythonNamespaces = [ "azure.mgmt" ]; + # has no tests doCheck = false; + pythonImportsCheck = [ "azure.mgmt.commerce" ]; meta = with lib; { description = "This is the Microsoft Azure Commerce Management Client Library"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ mwilsoninsight ]; + maintainers = with maintainers; [ mwilsoninsight jonringer ]; }; } |