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
53
54
55
56
57
58
59
60
61
62
63
64
|
{
lib,
fetchFromGitHub,
buildPythonPackage,
poetry-core,
jsonpath-ng,
jinja2,
python,
python-docx,
matplotlib,
pyyaml,
pytestCheckHook,
pythonOlder,
pythonRelaxDepsHook,
}:
buildPythonPackage rec {
pname = "sarif-tools";
version = "2.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "microsoft";
repo = "sarif-tools";
rev = "v${version}";
hash = "sha256-80amYGnf7xZdpxzTjBGwgg39YN/jJsEkTm0uAlVbH0w=";
};
disabled = pythonOlder "3.8";
nativeBuildInputs = [
poetry-core
pythonRelaxDepsHook
];
propagatedBuildInputs = [
jsonpath-ng
jinja2
python
python-docx
matplotlib
pyyaml
];
nativeCheckInputs = [ pytestCheckHook ];
pythonRelaxDeps = [ "python-docx" ];
disabledTests = [
# Broken, re-enable once https://github.com/microsoft/sarif-tools/pull/41 is merged
"test_version"
];
pythonImportsCheck = [ "sarif" ];
meta = {
description = "Set of command line tools and Python library for working with SARIF files";
homepage = "https://github.com/microsoft/sarif-tools";
changelog = "https://github.com/microsoft/sarif-tools/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ puzzlewolf ];
mainProgram = "sarif";
};
}
|