python311Packages.appthreat-vulnerability-db: 5.1.4 -> 5.2.0

Diff: https://github.com/AppThreat/vulnerability-db/compare/refs/tags/v5.1.4...v5.2.0

Changelog: https://github.com/AppThreat/vulnerability-db/releases/tag/v5.2.0
This commit is contained in:
Fabian Affolter 2023-07-01 12:19:48 +02:00
parent 03b3056f25
commit 1453f87209

View file

@ -11,13 +11,14 @@
, pythonOlder
, pythonRelaxDepsHook
, semver
, setuptools
, tabulate
}:
buildPythonPackage rec {
pname = "appthreat-vulnerability-db";
version = "5.1.4";
format = "setuptools";
version = "5.2.0";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -25,15 +26,12 @@ buildPythonPackage rec {
owner = "AppThreat";
repo = "vulnerability-db";
rev = "refs/tags/v${version}";
hash = "sha256-IOQyQ78u9Pr27UKchjSqzCl47UajknI8MYZZy2DheSk=";
hash = "sha256-OtaoyqYRsZVoWezrTAy3zROyNeRLbZmCT+z7YCwf9Ow=";
};
postPatch = ''
substituteInPlace pytest.ini \
--replace " --cov-append --cov-report term --cov vdb" ""
# https://github.com/AppThreat/vulnerability-db/pull/48
substituteInPlace vdb/lib/utils.py \
--replace "isvalid(" "is_valid("
'';
pythonRelaxDeps = [
@ -42,6 +40,7 @@ buildPythonPackage rec {
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [