mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 08:23:09 +00:00
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
email-validator,
|
|
fetchFromGitHub,
|
|
poetry-core,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py-ocsf-models";
|
|
version = "0.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "prowler-cloud";
|
|
repo = "py-ocsf-models";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-cFtWPO78KRh7IY+ePTzXpLPbZm+EtNvuJkhZZzKKjaA=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|