Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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-consumption"; 13 version = "10.0.0"; 14 format = "setuptools"; 15 16 src = fetchPypi { 17 inherit pname version; 18 extension = "zip"; 19 hash = "sha256-BqCGQ2wXN/d6uGiU1R9Zc7bg+l7fVlWOTCllieurkTA="; 20 }; 21 22 propagatedBuildInputs = [ 23 msrestazure 24 azure-common 25 azure-mgmt-core 26 azure-mgmt-nspkg 27 ]; 28 29 preBuild = '' 30 rm -f azure_bdist_wheel.py 31 substituteInPlace setup.cfg \ 32 --replace "azure-namespace-package = azure-mgmt-nspkg" "" 33 ''; 34 35 pythonNamespaces = [ "azure.mgmt" ]; 36 37 # has no tests 38 doCheck = false; 39 40 meta = with lib; { 41 description = "This is the Microsoft Azure Consumption Management Client Library"; 42 homepage = "https://github.com/Azure/azure-sdk-for-python"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ maxwilson ]; 45 }; 46}