python310Packages.appthreat-vulnerability-db: allow later semver releases
This commit is contained in:
parent
6d934088ea
commit
d0099d200d
|
@ -9,6 +9,7 @@
|
|||
, packageurl-python
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, semver
|
||||
, tabulate
|
||||
}:
|
||||
|
@ -27,6 +28,22 @@ buildPythonPackage rec {
|
|||
hash = "sha256-lbaDoLEOMzMGwqBx6gBynVpXz/NM/uCJELwd4d1IEwk=";
|
||||
};
|
||||
|
||||
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 = [
|
||||
"semver"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
appdirs
|
||||
cvss
|
||||
|
@ -42,11 +59,6 @@ buildPythonPackage rec {
|
|||
pytestCheckHook
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pytest.ini \
|
||||
--replace " --cov-append --cov-report term --cov vdb" ""
|
||||
'';
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue