-
-
Notifications
You must be signed in to change notification settings - Fork 14k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
baa26b9
commit 5dbc873
Showing
3 changed files
with
75 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ python3Packages }: | ||
|
||
with python3Packages; | ||
toPythonApplication sarif-tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 = pname; | ||
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"; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters