Skip to content

Commit

Permalink
python312Packages.py-ocsf-models: init at 0.1.1 (#345373)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabaff committed Sep 30, 2024
2 parents 576f49c + 63306af commit a6d0207
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
51 changes: 51 additions & 0 deletions pkgs/development/python-modules/py-ocsf-models/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
cryptography,
email-validator,
fetchFromGitHub,
poetry-core,
pydantic,
pytestCheckHook,
pythonOlder,
}:

buildPythonPackage rec {
pname = "py-ocsf-models";
version = "0.1.1";
pyproject = true;

disabled = pythonOlder "3.9";

src = fetchFromGitHub {
owner = "prowler-cloud";
repo = "py-ocsf-models";
rev = "refs/tags/${version}";
hash = "sha256-NGhlMBNoa8V3vo/z6OBAWqNCSlTyUutiyrTcCe1KF+4=";
};

pythonRelaxDeps = true;

build-system = [ poetry-core ];

dependencies = [
cryptography
email-validator
pydantic
];

nativeCheckInputs = [ pytestCheckHook ];

# Tests are outdated
doCheck = false;

pythonImportsCheck = [ "py_ocsf_models" ];

meta = {
description = "OCSF models in Python using Pydantic";
homepage = "https://github.com/prowler-cloud/py-ocsf-models";
changelog = "https://github.com/prowler-cloud/py-ocsf-models/releases/tag/${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9119,6 +9119,8 @@ self: super: with self; {

py-machineid = callPackage ../development/python-modules/py-machineid { };

py-ocsf-models = callPackage ../development/python-modules/py-ocsf-models { };

py-opensonic = callPackage ../development/python-modules/py-opensonic { };

py-radix-sr = callPackage ../development/python-modules/py-radix-sr { };
Expand Down

0 comments on commit a6d0207

Please sign in to comment.