2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
poetry-core,
|
|
|
|
jsonpath-ng,
|
|
|
|
jinja2,
|
|
|
|
python,
|
|
|
|
python-docx,
|
|
|
|
matplotlib,
|
|
|
|
pyyaml,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2024-05-15 15:35:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sarif-tools";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "3.0.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "microsoft";
|
|
|
|
repo = "sarif-tools";
|
2024-09-19 14:19:46 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-MYwhewUTZ3Wl93p6bN3+bHqtXz+BAlAhte+JaetPQYU=";
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jsonpath-ng
|
|
|
|
jinja2
|
|
|
|
python
|
|
|
|
python-docx
|
|
|
|
matplotlib
|
|
|
|
pyyaml
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "python-docx" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Broken, re-enable once https://github.com/microsoft/sarif-tools/pull/41 is merged
|
|
|
|
"test_version"
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sarif" ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Set of command line tools and Python library for working with SARIF files";
|
2024-05-15 15:35:15 +00:00
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|