From 926d977aea34a96a74282e5556c25e54bdc58aaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sol=C3=A8ne=20Rapenne?= Date: Thu, 23 Jun 2022 13:28:02 +0200 Subject: [PATCH] cve-bin-tool: 3.0 -> 3.1.1 (#178406) Co-authored-by: Cole Helbling Co-authored-by: Sandro --- pkgs/tools/security/cve-bin-tool/default.nix | 25 +++++++++++--------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/security/cve-bin-tool/default.nix b/pkgs/tools/security/cve-bin-tool/default.nix index dd26ce887ea..ac3771510c3 100644 --- a/pkgs/tools/security/cve-bin-tool/default.nix +++ b/pkgs/tools/security/cve-bin-tool/default.nix @@ -3,10 +3,6 @@ , fetchFromGitHub , jsonschema , plotly -, pytest -, pytest-xdist -, pytest-cov -, pytest-asyncio , beautifulsoup4 , pyyaml , isort @@ -25,16 +21,19 @@ , cchardet , pillow , pytestCheckHook +, xmlschema +, setuptools +, packaging }: buildPythonApplication rec { pname = "cve-bin-tool"; - version = "3.0"; + version = "3.1.1"; src = fetchFromGitHub { owner = "intel"; repo = "cve-bin-tool"; rev = "v${version}"; - sha256 = "1fmdnlhi03fdr4d4n7ydf6m0gx0cl77n3db8ldbs3m9zryblhzpr"; + sha256 = "0nz3ax3ldnrzk8694x0p743g5h2zply29ljpn21llbc7ca27zdv9"; }; # Wants to open a sqlite database, access the internet, etc @@ -43,10 +42,6 @@ buildPythonApplication rec { propagatedBuildInputs = [ jsonschema plotly - pytest - pytest-xdist - pytest-cov - pytest-asyncio beautifulsoup4 pyyaml isort @@ -65,6 +60,9 @@ buildPythonApplication rec { cchardet # needed by brotlipy pillow + setuptools + xmlschema + packaging ]; checkInputs = [ @@ -75,10 +73,15 @@ buildPythonApplication rec { "cve_bin_tool" ]; + # required until https://github.com/intel/cve-bin-tool/pull/1665 is merged + postPatch = '' + sed '/^pytest/d' -i requirements.txt + ''; + meta = with lib; { description = "CVE Binary Checker Tool"; homepage = "https://github.com/intel/cve-bin-tool"; - license = licenses.gpl3Only; + license = licenses.gpl3Plus; maintainers = teams.determinatesystems.members; }; }