2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
git,
|
|
|
|
python3,
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "vunnel";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.23.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "anchore";
|
|
|
|
repo = "vunnel";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-wXBfrlb4i4G3Sm0SopvDVGcQ0/hRGtUdzUQYyUj8/Ps=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
2024-07-27 06:49:29 +00:00
|
|
|
"defusedxml"
|
2024-04-21 15:54:59 +00:00
|
|
|
"ijson"
|
|
|
|
"sqlalchemy"
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = with python3.pkgs; [
|
|
|
|
poetry-core
|
|
|
|
poetry-dynamic-versioning
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = with python3.pkgs; [
|
|
|
|
click
|
|
|
|
colorlog
|
|
|
|
cvss
|
|
|
|
defusedxml
|
|
|
|
ijson
|
|
|
|
importlib-metadata
|
|
|
|
iso8601
|
|
|
|
lxml
|
|
|
|
mashumaro
|
|
|
|
mergedeep
|
|
|
|
orjson
|
|
|
|
pytest-snapshot
|
|
|
|
python-dateutil
|
|
|
|
pyyaml
|
|
|
|
requests
|
|
|
|
sqlalchemy
|
|
|
|
xsdata
|
|
|
|
xxhash
|
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs =
|
|
|
|
[ git ]
|
|
|
|
++ (with python3.pkgs; [
|
|
|
|
jsonschema
|
|
|
|
pytest-mock
|
|
|
|
pytest-unordered
|
|
|
|
pytestCheckHook
|
|
|
|
]);
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "vunnel" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Compare output
|
|
|
|
"test_status"
|
|
|
|
# TypeError
|
|
|
|
"test_parser"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Tool for collecting vulnerability data from various sources";
|
|
|
|
homepage = "https://github.com/anchore/vunnel";
|
|
|
|
changelog = "https://github.com/anchore/vunnel/releases/tag/v${version}";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
mainProgram = "vunnel";
|
|
|
|
};
|
|
|
|
}
|