diff --git a/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix b/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix index 04ed03667916..44b3486595fc 100644 --- a/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix +++ b/pkgs/development/python-modules/appthreat-vulnerability-db/default.nix @@ -7,11 +7,13 @@ fetchFromGitHub, httpx, msgpack, + oras, orjson, packageurl-python, pydantic, - pytestCheckHook, pytest-cov-stub, + pytestCheckHook, + pyyaml, rich, semver, setuptools, @@ -21,14 +23,14 @@ buildPythonPackage rec { pname = "appthreat-vulnerability-db"; - version = "6.5.1"; + version = "6.6.0"; pyproject = true; src = fetchFromGitHub { owner = "AppThreat"; repo = "vulnerability-db"; tag = "v${version}"; - hash = "sha256-SyUTDWi9t37Gw8qn7vCpW+l5jBAXFH5b/VACrFhgsRU="; + hash = "sha256-/tcfHEvTdk0B/vfcqqkTn9kGT3QIPLWW4l01fjnrhqE="; }; pythonRelaxDeps = [ @@ -51,13 +53,24 @@ buildPythonPackage rec { semver tabulate ] - ++ httpx.optional-dependencies.http2; + ++ httpx.optional-dependencies.http2 + ++ pydantic.optional-dependencies.email; + + optional-dependencies = { + all = [ + oras + pyyaml + ]; + custom = [ pyyaml ]; + oras = [ oras ]; + }; nativeCheckInputs = [ pytest-cov-stub pytestCheckHook writableTmpDirAsHomeHook - ]; + ] + ++ lib.flatten (builtins.attrValues optional-dependencies); disabledTests = [ # Tests require network access