Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
94 lines
1.7 KiB
Nix
94 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
git,
|
|
python3,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "vunnel";
|
|
version = "0.41.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "anchore";
|
|
repo = "vunnel";
|
|
tag = "v${version}";
|
|
hash = "sha256-YlyhIT8hlkFGo7xBjxa/5feiqv7H2HfA/E4+gz9cCkw=";
|
|
leaveDotGit = true;
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"defusedxml"
|
|
"ijson"
|
|
"importlib-metadata"
|
|
"sqlalchemy"
|
|
"websockets"
|
|
"xsdata"
|
|
];
|
|
|
|
build-system = with python3.pkgs; [
|
|
hatchling
|
|
uv-dynamic-versioning
|
|
];
|
|
|
|
dependencies =
|
|
with python3.pkgs;
|
|
[
|
|
click
|
|
colorlog
|
|
cvss
|
|
defusedxml
|
|
ijson
|
|
importlib-metadata
|
|
iso8601
|
|
lxml
|
|
mashumaro
|
|
mergedeep
|
|
oras
|
|
orjson
|
|
packageurl-python
|
|
pytest-snapshot
|
|
python-dateutil
|
|
pyyaml
|
|
requests
|
|
sqlalchemy
|
|
xsdata
|
|
xxhash
|
|
zstandard
|
|
]
|
|
++ xsdata.optional-dependencies.cli
|
|
++ xsdata.optional-dependencies.lxml
|
|
++ xsdata.optional-dependencies.soap;
|
|
|
|
nativeCheckInputs = [
|
|
git
|
|
]
|
|
++ (with python3.pkgs; [
|
|
jsonschema
|
|
pytest-mock
|
|
pytest-unordered
|
|
pytestCheckHook
|
|
]);
|
|
|
|
pythonImportsCheck = [ "vunnel" ];
|
|
|
|
disabledTests = [
|
|
# Compare output
|
|
"test_status"
|
|
# TypeError
|
|
"test_parser"
|
|
# Test require network access
|
|
"test_rhel_provider_supports_ignore_hydra_errors"
|
|
];
|
|
|
|
meta = {
|
|
description = "Tool for collecting vulnerability data from various sources";
|
|
homepage = "https://github.com/anchore/vunnel";
|
|
changelog = "https://github.com/anchore/vunnel/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
mainProgram = "vunnel";
|
|
};
|
|
}
|