diff --git a/pkgs/development/python-modules/policy-sentry/default.nix b/pkgs/development/python-modules/policy-sentry/default.nix index 19cfbf29192c..09e909eaa142 100644 --- a/pkgs/development/python-modules/policy-sentry/default.nix +++ b/pkgs/development/python-modules/policy-sentry/default.nix @@ -1,19 +1,21 @@ -{ lib -, beautifulsoup4 -, buildPythonPackage -, click -, fetchFromGitHub -, pytestCheckHook -, pythonOlder -, pyyaml -, requests -, schema +{ + lib, + beautifulsoup4, + buildPythonPackage, + click, + fetchFromGitHub, + pytestCheckHook, + pythonOlder, + pyyaml, + requests, + schema, + setuptools, }: buildPythonPackage rec { pname = "policy-sentry"; - version = "0.12.10"; - format = "setuptools"; + version = "0.12.12"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -21,10 +23,12 @@ buildPythonPackage rec { owner = "salesforce"; repo = "policy_sentry"; rev = "refs/tags/${version}"; - hash = "sha256-Kha5fq5l1yXWjDZq9GFKk3gYRtrEyiCFjbEAdYGPSa8="; + hash = "sha256-1LYcUlGoSalbdo4tiNIYbdA04IHRTImhdWScpiCZk50="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ beautifulsoup4 click requests @@ -32,20 +36,16 @@ buildPythonPackage rec { schema ]; - nativeCheckInputs = [ - pytestCheckHook - ]; + nativeCheckInputs = [ pytestCheckHook ]; - pythonImportsCheck = [ - "policy_sentry" - ]; + pythonImportsCheck = [ "policy_sentry" ]; meta = with lib; { description = "Python module for generating IAM least privilege policies"; - mainProgram = "policy_sentry"; homepage = "https://github.com/salesforce/policy_sentry"; changelog = "https://github.com/salesforce/policy_sentry/releases/tag/${version}"; license = licenses.bsd3; maintainers = with maintainers; [ fab ]; + mainProgram = "policy_sentry"; }; }