blob: a4ce839ca0dc9009f8f1bd1cc83b14691f6fa249 (
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
|
{
lib,
antlr4-python3-runtime,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "stix2-patterns";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "oasis-open";
repo = "cti-pattern-validator";
tag = "v${version}";
hash = "sha256-lFgnvI5a7U7/Qj4Pqjr3mx4TNDnC2/Ru7tVG7VggR7Y=";
};
build-system = [ setuptools ];
dependencies = [
antlr4-python3-runtime
six
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "stix2patterns" ];
meta = {
broken = lib.versionAtLeast antlr4-python3-runtime.version "4.10";
description = "Validate patterns used to express cyber observable content in STIX Indicators";
mainProgram = "validate-patterns";
homepage = "https://github.com/oasis-open/cti-pattern-validator";
changelog = "https://github.com/oasis-open/cti-pattern-validator/blob/${version}/CHANGELOG.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ fab ];
};
}
|