python312Packages.py-ocsf-models: init at 0.1.1 (#345373)

This commit is contained in:
Fabian Affolter 2024-09-30 07:46:16 +02:00 committed by GitHub
commit a6d0207fea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 53 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -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 { };