nixpkgs/pkgs/development/python-modules/cloudsplaining/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

70 lines
1.2 KiB
Nix

{ lib
, boto3
, botocore
, buildPythonPackage
, cached-property
, click
, click-option-group
, fetchFromGitHub
, jinja2
, markdown
, policy-sentry
, pytestCheckHook
, pythonOlder
, pyyaml
, schema
}:
buildPythonPackage rec {
pname = "cloudsplaining";
version = "0.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = pname;
rev = version;
hash = "sha256-HdZHRK/Q544z9ySbjNIjqiXzel0UTsnb9tuXawbkwZg=";
};
propagatedBuildInputs = [
boto3
botocore
cached-property
click
click-option-group
jinja2
markdown
policy-sentry
pyyaml
schema
];
nativeCheckInputs = [
pytestCheckHook
];
postPatch = ''
# Ignore pinned versions
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
'';
disabledTests = [
"test_policy_expansion"
"test_statement_details_for_allow_not_action"
];
pythonImportsCheck = [
"cloudsplaining"
];
meta = with lib; {
description = "Python module for AWS IAM security assessment";
homepage = "https://github.com/salesforce/cloudsplaining";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}