depot/third_party/nixpkgs/pkgs/by-name/vu/vunnel/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

79 lines
1.4 KiB
Nix

{
lib,
fetchFromGitHub,
git,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "vunnel";
version = "0.23.2";
pyproject = true;
src = fetchFromGitHub {
owner = "anchore";
repo = "vunnel";
rev = "refs/tags/v${version}";
hash = "sha256-wXBfrlb4i4G3Sm0SopvDVGcQ0/hRGtUdzUQYyUj8/Ps=";
};
pythonRelaxDeps = [
"defusedxml"
"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";
};
}