diff --git a/pkgs/development/python-modules/azure-mgmt-security/default.nix b/pkgs/development/python-modules/azure-mgmt-security/default.nix index 30c4fe2e7627..f0c116a1bb68 100644 --- a/pkgs/development/python-modules/azure-mgmt-security/default.nix +++ b/pkgs/development/python-modules/azure-mgmt-security/default.nix @@ -1,18 +1,24 @@ -{ lib, buildPythonPackage, fetchPypi, isPy27 +{ lib +, buildPythonPackage +, fetchPypi , azure-common , azure-mgmt-core , msrest , msrestazure +, pythonOlder +, typing-extensions }: buildPythonPackage rec { - version = "2.0.0"; pname = "azure-mgmt-security"; - disabled = isPy27; + version = "3.0.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "sha256-2sr3clHf5EvbXAx5FH3d3ab1/Y48r6Ojww3p9WX35aM="; + hash = "sha256-vLp874V/awKi2Yr+sH+YcbFij6M9iGGrE4fnMufbP4Q="; extension = "zip"; }; @@ -21,12 +27,17 @@ buildPythonPackage rec { azure-mgmt-core msrest msrestazure + ] ++ lib.optionals (pythonOlder "3.8") [ + typing-extensions ]; # no tests included doCheck = false; - pythonImportsCheck = [ "azure.common" "azure.mgmt.security" ]; + pythonImportsCheck = [ + "azure.common" + "azure.mgmt.security" + ]; meta = with lib; { description = "Microsoft Azure Security Center Management Client Library for Python";