Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, azure-common 5, azure-mgmt-core 6, msrest 7, msrestazure 8, pythonOlder 9, typing-extensions 10}: 11 12buildPythonPackage rec { 13 pname = "azure-mgmt-security"; 14 version = "5.0.0"; 15 format = "setuptools"; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-OLA+/oLCNEzqID/alebQC3rCJ4L6HAtYXNDqLI/z5wI="; 22 extension = "zip"; 23 }; 24 25 propagatedBuildInputs = [ 26 azure-common 27 azure-mgmt-core 28 msrest 29 msrestazure 30 ] ++ lib.optionals (pythonOlder "3.8") [ 31 typing-extensions 32 ]; 33 34 # no tests included 35 doCheck = false; 36 37 pythonImportsCheck = [ 38 "azure.common" 39 "azure.mgmt.security" 40 ]; 41 42 meta = with lib; { 43 description = "Microsoft Azure Security Center Management Client Library for Python"; 44 homepage = "https://github.com/Azure/azure-sdk-for-python"; 45 license = licenses.mit; 46 maintainers = with maintainers; [ jonringer ]; 47 }; 48}