python312Packages.py-ocsf-models: init at 0.1.1 (#345373)
This commit is contained in:
commit
a6d0207fea
51
pkgs/development/python-modules/py-ocsf-models/default.nix
Normal file
51
pkgs/development/python-modules/py-ocsf-models/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user