2 , antlr4-python3-runtime
12 buildPythonPackage rec {
13 pname = "stix2-patterns";
17 disabled = pythonOlder "3.7";
19 src = fetchFromGitHub {
21 repo = "cti-pattern-validator";
22 rev = "refs/tags/v${version}";
23 hash = "sha256-lFgnvI5a7U7/Qj4Pqjr3mx4TNDnC2/Ru7tVG7VggR7Y=";
27 substituteInPlace setup.py \
28 --replace "antlr4-python3-runtime~=" "antlr4-python3-runtime>="
36 propagatedBuildInputs = [
37 antlr4-python3-runtime
45 pythonImportsCheck = [
50 # Exception: Could not deserialize ATN with version (expected 4)
51 "stix2patterns/test/v20/test_inspector.py"
52 "stix2patterns/test/v21/test_inspector.py"
53 "stix2patterns/test/v20/test_validator.py"
54 "stix2patterns/test/v21/test_validator.py"
58 description = "Validate patterns used to express cyber observable content in STIX Indicators";
59 mainProgram = "validate-patterns";
60 homepage = "https://github.com/oasis-open/cti-pattern-validator";
61 changelog = "https://github.com/oasis-open/cti-pattern-validator/blob/${version}/CHANGELOG.rst";
62 license = licenses.bsd3;
63 maintainers = with maintainers; [ fab ];