af541341d7
Diff: https://github.com/anchore/vunnel/compare/refs/tags/v0.27.0...v0.28.0 Changelog: https://github.com/anchore/vunnel/releases/tag/v0.28.0
81 lines
1.4 KiB
Nix
81 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
git,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "vunnel";
|
|
version = "0.28.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anchore";
|
|
repo = "vunnel";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-KemiM+dCLSU3a6IIbI9VKtaIeY4SVcHsuE9QwZtzNxU=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"defusedxml"
|
|
"ijson"
|
|
"sqlalchemy"
|
|
"xsdata"
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|