Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 81 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182{ lib, appdirs, apsw, buildPythonPackage, cvss, fetchFromGitHub, httpx, msgpack, orjson, packageurl-python, pydantic, pytestCheckHook, pytest-cov-stub, rich, semver, setuptools, tabulate,}:
buildPythonPackage rec { pname = "appthreat-vulnerability-db"; version = "6.4.3"; pyproject = true;
src = fetchFromGitHub { owner = "AppThreat"; repo = "vulnerability-db"; tag = "v${version}"; hash = "sha256-08/ohfIPM/jb2nuOIj1XoUzWaq7s6CfWFRLHwqK0HAQ="; };
pythonRelaxDeps = [ "msgpack" "semver" ];
build-system = [ setuptools ];
dependencies = [ appdirs apsw cvss httpx msgpack orjson packageurl-python pydantic rich semver tabulate ] ++ httpx.optional-dependencies.http2;
nativeCheckInputs = [ pytestCheckHook pytest-cov-stub ];
preCheck = '' export HOME=$(mktemp -d); '';
disabledTests = [ # Tests require network access "test_bulk_search" "test_download_recent" "test_parse_purl" ];
pythonImportsCheck = [ "vdb" ];
meta = with lib; { description = "Vulnerability database and package search for sources such as OSV, NVD, GitHub and npm"; homepage = "https://github.com/appthreat/vulnerability-db"; changelog = "https://github.com/AppThreat/vulnerability-db/releases/tag/${src.tag}"; license = with licenses; [ mit ]; maintainers = with maintainers; [ fab ]; mainProgram = "vdb"; };}