sarif-tools: init at 2.0.0 (#283208)

* sarif-tools: init at 2.0.0

* Update pkgs/development/python-modules/sarif-tools/default.nix

Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

---------

Co-authored-by: Aleksana <alexander.huang.y@gmail.com>
Co-authored-by: Anderson Torres <torres.anderson.85@protonmail.com>

Changed files
+75
pkgs
by-name
sa
sarif-tools
development
python-modules
sarif-tools
top-level
+4
pkgs/by-name/sa/sarif-tools/package.nix
···
+
{ python3Packages }:
+
+
with python3Packages;
+
toPythonApplication sarif-tools
+69
pkgs/development/python-modules/sarif-tools/default.nix
···
+
{ 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 = "A 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";
+
};
+
}
+2
pkgs/top-level/python-packages.nix
···
sarif-om = callPackage ../development/python-modules/sarif-om { };
+
sarif-tools = callPackage ../development/python-modules/sarif-tools { };
+
sarge = callPackage ../development/python-modules/sarge { };
sasmodels = callPackage ../development/python-modules/sasmodels { };