Commit c6e46679 authored by Fabian Affolter's avatar Fabian Affolter
Browse files
parent 1c04fd26
Loading
Loading
Loading
Loading
+14 −10
Original line number Diff line number Diff line
@@ -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 ];
  };