Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, python 4, fetchPypi 5, msrest 6, msrestazure 7, azure-common 8, azure-mgmt-nspkg 9, isPy3k 10}: 11 12buildPythonPackage rec { 13 pname = "azure-mgmt-applicationinsights"; 14 version = "0.2.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 extension = "zip"; 19 sha256 = "1hm6s7vym1y072jqypjgbhps8lza1d5kb8qcpyxnw4zsmsvshdp5"; 20 }; 21 22 propagatedBuildInputs = [ 23 msrest 24 msrestazure 25 azure-common 26 ] ++ lib.optionals (!isPy3k) [ 27 azure-mgmt-nspkg 28 ]; 29 30 postInstall = lib.optionalString isPy3k '' 31 rm $out/${python.sitePackages}/azure/__init__.py 32 rm $out/${python.sitePackages}/azure/mgmt/__init__.py 33 ''; 34 35 # has no tests 36 doCheck = false; 37 38 meta = with lib; { 39 description = "This is the Microsoft Azure Application Insights Management Client Library"; 40 homepage = "https://github.com/Azure/azure-sdk-for-python"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ mwilsoninsight ]; 43 }; 44}