Unverified Commit ba43ab11 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

checkov: fix broken build (#442307)

parents b60204f3 6f95df11
Loading
Loading
Loading
Loading
+13 −1
Original line number Diff line number Diff line
@@ -17,6 +17,18 @@ let
          tag = "v${version}";
          hash = "sha256-nklizCiu7Nmynjd5WU5oX/v2TWy9xFVF4GkmCwFKZLI=";
        };

        # The `serializable` package eventually got renamed `py_serializable`, therefore we need
        # to patch the imports;
        # _c.f._ https://github.com/madpah/serializable/pull/155 .
        postPatch = ''
          find . -name '*.py' | xargs -I{} sed -i \
            -e 's/serializable\./py_serializable\./g' \
            -e 's/@serializable/@py_serializable/g' \
            -e 's/from serializable/from py_serializable/g' \
            -e 's/import serializable/import py_serializable/g' \
            {}
        '';
      });
    };
  };
@@ -41,8 +53,8 @@ python3.pkgs.buildPythonApplication rec {
    "bc-python-hcl2"
    "boto3"
    "botocore"
    "cachetools"
    "cloudsplaining"
    "cyclonedx-python-lib"
    "dpath"
    "igraph"
    "importlib-metadata"