1{ 2 lib, 3 buildPythonPackage, 4 cryptography, 5 email-validator, 6 fetchFromGitHub, 7 poetry-core, 8 pydantic, 9 pytestCheckHook, 10 pythonOlder, 11}: 12 13buildPythonPackage rec { 14 pname = "py-ocsf-models"; 15 version = "0.7.1"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.9"; 19 20 src = fetchFromGitHub { 21 owner = "prowler-cloud"; 22 repo = "py-ocsf-models"; 23 tag = version; 24 hash = "sha256-6mVu508FyLUUqKTKSFHXnsna/KDMh3RXVQ051sqozQs="; 25 }; 26 27 pythonRelaxDeps = true; 28 29 build-system = [ poetry-core ]; 30 31 dependencies = [ 32 cryptography 33 email-validator 34 pydantic 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 # Tests are outdated 40 doCheck = false; 41 42 pythonImportsCheck = [ "py_ocsf_models" ]; 43 44 meta = { 45 description = "OCSF models in Python using Pydantic"; 46 homepage = "https://github.com/prowler-cloud/py-ocsf-models"; 47 changelog = "https://github.com/prowler-cloud/py-ocsf-models/releases/tag/${src.tag}"; 48 license = lib.licenses.asl20; 49 maintainers = with lib.maintainers; [ fab ]; 50 }; 51}