blob: c80b02763c0bf78b018558857483dab504ff4ce5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
buildPythonPackage,
colorama,
cpe,
fetchFromGitHub,
jsonschema,
python-dateutil,
requests,
setuptools,
simplejson,
stix2-patterns,
}:
buildPythonPackage rec {
pname = "stix2-validator";
version = "3.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "oasis-open";
repo = "cti-stix-validator";
tag = "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 ];
};
}
|