Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 48 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, msrestazure 5, azure-common 6, azure-mgmt-core 7, azure-mgmt-nspkg 8, python 9, isPy3k 10}: 11 12buildPythonPackage rec { 13 pname = "azure-mgmt-commerce"; 14 version = "6.0.0"; 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; [ maxwilson jonringer ]; 47 }; 48}