python312Packages.appthreat-vulnerability-db: refactor

This commit is contained in:
Fabian Affolter 2024-03-30 09:49:04 +01:00
parent 3c9e0924c4
commit 28aff0794b

View File

@ -31,7 +31,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace pyproject.toml \
--replace-warn " --cov-report=term-missing --no-cov-on-fail --cov vdb" ""
--replace-fail " --cov-report=term-missing --no-cov-on-fail --cov vdb" ""
'';
pythonRelaxDeps = [
@ -39,12 +39,15 @@ buildPythonPackage rec {
"semver"
];
nativeBuildInputs = [
pythonRelaxDepsHook
build-system = [
setuptools
];
propagatedBuildInputs = [
nativeBuildInputs = [
pythonRelaxDepsHook
];
dependencies = [
appdirs
cvss
httpx
@ -75,10 +78,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Vulnerability database and package search for sources such as OSV, NVD, GitHub and npm";
mainProgram = "vdb";
homepage = "https://github.com/appthreat/vulnerability-db";
changelog = "https://github.com/AppThreat/vulnerability-db/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "vdb";
};
}