mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
python312Packages.stix2-validator: init at 3.2.0
Validator for STIX 2.0 JSON normative requirements and best practices https://github.com/oasis-open/cti-stix-validator/
This commit is contained in:
parent
6847ffb2ab
commit
eb2bb25eba
55
pkgs/development/python-modules/stix2-validator/default.nix
Normal file
55
pkgs/development/python-modules/stix2-validator/default.nix
Normal file
@ -0,0 +1,55 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
colorama,
|
||||
cpe,
|
||||
fetchFromGitHub,
|
||||
jsonschema,
|
||||
python-dateutil,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
simplejson,
|
||||
stix2-patterns,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "stix2-validator";
|
||||
version = "3.2.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "oasis-open";
|
||||
repo = "cti-stix-validator";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-OI1SXILyCRGl1ZsoyYDl+/RsBhTP24eqECtW3uazS2k=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
colorama
|
||||
cpe
|
||||
jsonschema
|
||||
python-dateutil
|
||||
requests
|
||||
simplejson
|
||||
stix2-patterns
|
||||
];
|
||||
|
||||
# Tests need more work
|
||||
# Exception: Could not deserialize ATN with version (expected 4).
|
||||
doCheck = false;
|
||||
|
||||
# nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
description = "Validator for STIX 2.0 JSON normative requirements and best practices";
|
||||
homepage = "https://github.com/oasis-open/cti-stix-validator/";
|
||||
changelog = "https://github.com/oasis-open/cti-stix-validator/blob/${src.rev}/CHANGELOG";
|
||||
license = lib.licenses.bsd3;
|
||||
maintainers = with lib.maintainers; [ fab ];
|
||||
};
|
||||
}
|
@ -14894,6 +14894,8 @@ self: super: with self; {
|
||||
|
||||
stix2-patterns = callPackage ../development/python-modules/stix2-patterns { };
|
||||
|
||||
stix2-validator = callPackage ../development/python-modules/stix2-validator { };
|
||||
|
||||
stm32loader = callPackage ../development/python-modules/stm32loader { };
|
||||
|
||||
stone = callPackage ../development/python-modules/stone { };
|
||||
|
Loading…
Reference in New Issue
Block a user