python312Packages.cloudsplaining: refactor

- add changelog to meta
This commit is contained in:
Fabian Affolter
2024-07-23 21:44:27 +02:00
parent 27e4abe7c7
commit b104b41876
@@ -14,23 +14,31 @@
pythonOlder,
pyyaml,
schema,
setuptools,
}:
buildPythonPackage rec {
pname = "cloudsplaining";
version = "0.6.3";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "salesforce";
repo = pname;
repo = "cloudsplaining";
rev = "refs/tags/${version}";
hash = "sha256-mRWfb14zKS141cYzShXY+OoHWfs9PB1oJu3spsvv6mI=";
};
propagatedBuildInputs = [
postPatch = ''
# Ignore pinned versions
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
'';
build-system = [ setuptools ];
dependencies = [
boto3
botocore
cached-property
@@ -45,11 +53,6 @@ buildPythonPackage rec {
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
# Ignore pinned versions
sed -i "s/'\(.*\)\(==\|>=\).*'/'\1'/g" requirements.txt
'';
disabledTests = [
"test_policy_expansion"
"test_statement_details_for_allow_not_action"
@@ -59,9 +62,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python module for AWS IAM security assessment";
mainProgram = "cloudsplaining";
homepage = "https://github.com/salesforce/cloudsplaining";
changelog = "https://github.com/salesforce/cloudsplaining/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
mainProgram = "cloudsplaining";
};
}