nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 42 lines 914 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, isPy3k 6, msrestazure 7, azure-common 8, azure-mgmt-nspkg 9}: 10 11buildPythonPackage rec { 12 pname = "azure-mgmt-consumption"; 13 version = "3.0.0"; 14 15 src = fetchPypi { 16 inherit pname version; 17 extension = "zip"; 18 sha256 = "0nqgywknpj2a69an5yrn0c32fk01v5gi05za7dlf4ivwr9s4np83"; 19 }; 20 21 propagatedBuildInputs = [ 22 msrestazure 23 azure-common 24 azure-mgmt-nspkg 25 ]; 26 27 # still needed when overriding to previous versions 28 # E.g. azure-cli 29 postInstall = lib.optionalString isPy3k '' 30 rm -f $out/${python.sitePackages}/azure/{,mgmt/}__init__.py 31 ''; 32 33 # has no tests 34 doCheck = false; 35 36 meta = with lib; { 37 description = "This is the Microsoft Azure Consumption Management Client Library"; 38 homepage = "https://github.com/Azure/azure-sdk-for-python"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ mwilsoninsight ]; 41 }; 42}