2021-04-16 00:29:21 +01:00
|
|
|
{ lib
|
2021-09-20 22:13:54 +01:00
|
|
|
, buildPythonApplication
|
2021-04-16 00:29:21 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, jsonschema
|
|
|
|
, plotly
|
|
|
|
, beautifulsoup4
|
|
|
|
, pyyaml
|
|
|
|
, isort
|
|
|
|
, py
|
|
|
|
, jinja2
|
|
|
|
, rpmfile
|
|
|
|
, reportlab
|
|
|
|
, zstandard
|
|
|
|
, rich
|
|
|
|
, aiohttp
|
|
|
|
, toml
|
2021-09-20 22:13:54 +01:00
|
|
|
, distro
|
2021-04-16 00:29:21 +01:00
|
|
|
# aiohttp[speedups]
|
|
|
|
, aiodns
|
|
|
|
, brotlipy
|
|
|
|
, cchardet
|
|
|
|
, pillow
|
|
|
|
, pytestCheckHook
|
2022-06-23 12:28:02 +01:00
|
|
|
, xmlschema
|
|
|
|
, setuptools
|
|
|
|
, packaging
|
2021-04-16 00:29:21 +01:00
|
|
|
}:
|
2021-09-20 22:13:54 +01:00
|
|
|
buildPythonApplication rec {
|
2021-04-16 00:29:21 +01:00
|
|
|
pname = "cve-bin-tool";
|
2022-06-23 12:28:02 +01:00
|
|
|
version = "3.1.1";
|
2021-04-16 00:29:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "cve-bin-tool";
|
2021-09-20 22:13:54 +01:00
|
|
|
rev = "v${version}";
|
2022-06-23 12:28:02 +01:00
|
|
|
sha256 = "0nz3ax3ldnrzk8694x0p743g5h2zply29ljpn21llbc7ca27zdv9";
|
2021-04-16 00:29:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Wants to open a sqlite database, access the internet, etc
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jsonschema
|
|
|
|
plotly
|
|
|
|
beautifulsoup4
|
|
|
|
pyyaml
|
|
|
|
isort
|
|
|
|
py
|
|
|
|
jinja2
|
|
|
|
rpmfile
|
|
|
|
reportlab
|
|
|
|
zstandard
|
|
|
|
rich
|
|
|
|
aiohttp
|
|
|
|
toml
|
2021-09-20 22:13:54 +01:00
|
|
|
distro
|
2021-04-16 00:29:21 +01:00
|
|
|
# aiohttp[speedups]
|
|
|
|
aiodns
|
|
|
|
brotlipy
|
|
|
|
cchardet
|
|
|
|
# needed by brotlipy
|
|
|
|
pillow
|
2022-06-23 12:28:02 +01:00
|
|
|
setuptools
|
|
|
|
xmlschema
|
|
|
|
packaging
|
2021-04-16 00:29:21 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cve_bin_tool"
|
|
|
|
];
|
|
|
|
|
2022-06-23 12:28:02 +01:00
|
|
|
# required until https://github.com/intel/cve-bin-tool/pull/1665 is merged
|
|
|
|
postPatch = ''
|
|
|
|
sed '/^pytest/d' -i requirements.txt
|
|
|
|
'';
|
|
|
|
|
2021-04-16 00:29:21 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CVE Binary Checker Tool";
|
|
|
|
homepage = "https://github.com/intel/cve-bin-tool";
|
2022-06-23 12:28:02 +01:00
|
|
|
license = licenses.gpl3Plus;
|
2021-04-16 00:29:21 +01:00
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|