diff options
author | Nora Breitmoser-Widdecke | 2024-05-12 15:18:35 +0200 |
---|---|---|
committer | GitHub | 2024-05-12 21:18:35 +0800 |
commit | db4171f3e241b4562fd0c0f924c802e35a1ddcdd (patch) | |
tree | c19c7a00bdafe11b8dd5c0badba2d6b87e0112b2 | |
parent | 5307ac27d74584e64679b57c6effe3615d764633 (diff) |
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>
-rw-r--r-- | pkgs/by-name/sa/sarif-tools/package.nix | 4 | ||||
-rw-r--r-- | pkgs/development/python-modules/sarif-tools/default.nix | 69 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
3 files changed, 75 insertions, 0 deletions
diff --git a/pkgs/by-name/sa/sarif-tools/package.nix b/pkgs/by-name/sa/sarif-tools/package.nix new file mode 100644 index 000000000000..881c2604eef9 --- /dev/null +++ b/pkgs/by-name/sa/sarif-tools/package.nix @@ -0,0 +1,4 @@ +{ python3Packages }: + +with python3Packages; +toPythonApplication sarif-tools diff --git a/pkgs/development/python-modules/sarif-tools/default.nix b/pkgs/development/python-modules/sarif-tools/default.nix new file mode 100644 index 000000000000..785c26e34529 --- /dev/null +++ b/pkgs/development/python-modules/sarif-tools/default.nix @@ -0,0 +1,69 @@ +{ 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"; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 80e540400ada..23ae40ca934d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13568,6 +13568,8 @@ self: super: with self; { 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 { }; |