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

prowler: override py-ocsf-models (#396830)

parents c4763295 b052de7c
Loading
Loading
Loading
Loading
+19 −4
Original line number Diff line number Diff line
@@ -4,7 +4,22 @@
  fetchFromGitHub,
}:

python3.pkgs.buildPythonApplication rec {
let
  py = python3.override {
    packageOverrides = self: super: {

      # Doesn't work with latest pydantic
      py-ocsf-models = super.py-ocsf-models.overridePythonAttrs (oldAttrs: rec {
        dependencies = [
          python3.pkgs.pydantic_1
          python3.pkgs.cryptography
          python3.pkgs.email-validator
        ];
      });
    };
  };
in
py.pkgs.buildPythonApplication rec {
  pname = "prowler";
  version = "5.4.3";
  pyproject = true;
@@ -18,9 +33,9 @@ python3.pkgs.buildPythonApplication rec {

  pythonRelaxDeps = true;

  build-system = with python3.pkgs; [ poetry-core ];
  build-system = with py.pkgs; [ poetry-core ];

  dependencies = with python3.pkgs; [
  dependencies = with py.pkgs; [
    alive-progress
    awsipranges
    azure-identity
@@ -59,7 +74,7 @@ python3.pkgs.buildPythonApplication rec {
    numpy
    pandas
    py-ocsf-models
    pydantic
    pydantic_1
    python-dateutil
    pytz
    schema