nixpkgs/pkgs/development/python-modules/azure-mgmt-security/default.nix

49 lines
955 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, azure-common
, azure-mgmt-core
, msrest
, msrestazure
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "azure-mgmt-security";
version = "5.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-OLA+/oLCNEzqID/alebQC3rCJ4L6HAtYXNDqLI/z5wI=";
extension = "zip";
};
propagatedBuildInputs = [
azure-common
azure-mgmt-core
msrest
msrestazure
] ++ lib.optionals (pythonOlder "3.8") [
typing-extensions
];
# no tests included
doCheck = false;
pythonImportsCheck = [
"azure.common"
"azure.mgmt.security"
];
meta = with lib; {
description = "Microsoft Azure Security Center Management Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};
}