Commit 63306af8 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.py-ocsf-models: init at 0.1.1

OCSF models in Python using Pydantic

https://github.com/prowler-cloud/py-ocsf-models
parent 8637e879
Loading
Loading
Loading
Loading
+51 −0
Original line number Diff line number Diff line
{
  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 −0
Original line number Diff line number Diff line
@@ -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 { };