depot/third_party/nixpkgs/pkgs/development/python-modules/policy-sentry/default.nix

46 lines
847 B
Nix
Raw Normal View History

{ lib
, beautifulsoup4
, buildPythonPackage
, click
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, schema
}:
buildPythonPackage rec {
pname = "policy-sentry";
version = "0.11.16";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = "policy_sentry";
rev = version;
sha256 = "0m3sr1mhnmm22xgd3h9dgkrq20pdghwx505xld4pahj686z4bva2";
};
propagatedBuildInputs = [
beautifulsoup4
click
requests
pyyaml
schema
];
checkInputs = [
pytestCheckHook
];
pythonImportsCheck = [ "policy_sentry" ];
meta = with lib; {
description = "Python module for generating IAM least privilege policies";
homepage = "https://github.com/salesforce/policy_sentry";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}