prowler: override py-ocsf-models

This commit is contained in:
Fabian Affolter
2025-04-07 15:59:46 +02:00
parent b6efa33a3c
commit b052de7c38
+19 -4
View File
@@ -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.2";
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