Fabian Affolter 2024-02-09 08:47:07 +01:00
parent 1c04fd269f
commit c6e4667970

View File

@ -5,15 +5,25 @@
python3.pkgs.buildPythonApplication rec {
pname = "cfripper";
version = "1.15.2";
version = "1.15.3";
pyproject = true;
src = fetchFromGitHub {
owner = "Skyscanner";
repo = pname;
rev = "refs/tags/${version}";
repo = "cfripper";
rev = "refs/tags/v${version}";
hash = "sha256-SmD3Dq5LicPRe3lWFsq4zqM/yDZ1LsgRwSUA5/RbN9I=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "pluggy~=0.13.1" "pluggy" \
'';
nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
boto3
cfn-flip
@ -30,13 +40,6 @@ python3.pkgs.buildPythonApplication rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "click~=7.1.1" "click" \
--replace "pluggy~=0.13.1" "pluggy" \
--replace "pydash~=4.7.6" "pydash"
'';
disabledTestPaths = [
# Tests are failing
"tests/test_boto3_client.py"
@ -55,6 +58,7 @@ python3.pkgs.buildPythonApplication rec {
meta = with lib; {
description = "Tool for analysing CloudFormation templates";
homepage = "https://github.com/Skyscanner/cfripper";
changelog = "https://github.com/Skyscanner/cfripper/releases/tag/v${version}";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};