nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 52 lines 1.0 kB view raw
1{ 2 lib, 3 beautifulsoup4, 4 buildPythonPackage, 5 click, 6 fetchFromGitHub, 7 hatchling, 8 orjson, 9 pytestCheckHook, 10 pyyaml, 11 requests, 12 schema, 13}: 14 15buildPythonPackage rec { 16 pname = "policy-sentry"; 17 version = "0.15.1"; 18 pyproject = true; 19 20 src = fetchFromGitHub { 21 owner = "salesforce"; 22 repo = "policy_sentry"; 23 tag = version; 24 hash = "sha256-G7V3BqgJs9nyvhZ9xzNwP50yz+2SZfps/gsW6U8eisk="; 25 }; 26 27 pythonRelaxDeps = [ "beautifulsoup4" ]; 28 29 build-system = [ hatchling ]; 30 31 dependencies = [ 32 beautifulsoup4 33 click 34 orjson 35 pyyaml 36 requests 37 schema 38 ]; 39 40 nativeCheckInputs = [ pytestCheckHook ]; 41 42 pythonImportsCheck = [ "policy_sentry" ]; 43 44 meta = { 45 description = "Python module for generating IAM least privilege policies"; 46 homepage = "https://github.com/salesforce/policy_sentry"; 47 changelog = "https://github.com/salesforce/policy_sentry/releases/tag/${src.tag}"; 48 license = lib.licenses.bsd3; 49 maintainers = with lib.maintainers; [ fab ]; 50 mainProgram = "policy_sentry"; 51 }; 52}