2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonApplication,
|
|
|
|
fetchFromGitHub,
|
2024-05-15 15:35:15 +00:00
|
|
|
# aiohttp[speedups]
|
2024-09-19 14:19:46 +00:00
|
|
|
aiodns,
|
|
|
|
aiohttp,
|
|
|
|
beautifulsoup4,
|
|
|
|
brotlipy,
|
|
|
|
cvss,
|
|
|
|
distro,
|
|
|
|
filetype,
|
|
|
|
google-cloud-sdk,
|
|
|
|
jinja2,
|
|
|
|
jsonschema,
|
|
|
|
lib4sbom,
|
|
|
|
packageurl-python,
|
|
|
|
packaging,
|
|
|
|
plotly,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-gnupg,
|
|
|
|
pyyaml,
|
|
|
|
requests,
|
|
|
|
rich,
|
|
|
|
rpmfile,
|
|
|
|
setuptools,
|
|
|
|
xmlschema,
|
|
|
|
zstandard,
|
|
|
|
reportlab,
|
|
|
|
pip,
|
|
|
|
testers,
|
|
|
|
cve-bin-tool,
|
2021-04-26 19:14:03 +00:00
|
|
|
}:
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2021-10-01 09:20:50 +00:00
|
|
|
buildPythonApplication rec {
|
2021-04-26 19:14:03 +00:00
|
|
|
pname = "cve-bin-tool";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.3";
|
2023-08-22 20:05:09 +00:00
|
|
|
format = "setuptools";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "cve-bin-tool";
|
2022-12-28 21:21:41 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-A5w4U5EDX+UZWNMuz8GTOcubo8N2KfDlVV0aRNsO8/E=";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Wants to open a sqlite database, access the internet, etc
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
|
|
|
# aiohttp[speedups]
|
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
beautifulsoup4
|
|
|
|
brotlipy
|
|
|
|
cvss
|
|
|
|
distro
|
|
|
|
filetype
|
|
|
|
google-cloud-sdk # gsutil
|
|
|
|
jinja2
|
2021-04-26 19:14:03 +00:00
|
|
|
jsonschema
|
2024-05-15 15:35:15 +00:00
|
|
|
lib4sbom
|
|
|
|
packageurl-python
|
|
|
|
packaging
|
2021-04-26 19:14:03 +00:00
|
|
|
plotly
|
2024-05-15 15:35:15 +00:00
|
|
|
python-gnupg
|
2021-04-26 19:14:03 +00:00
|
|
|
pyyaml
|
2024-09-19 14:19:46 +00:00
|
|
|
requests
|
2021-04-26 19:14:03 +00:00
|
|
|
rich
|
2024-05-15 15:35:15 +00:00
|
|
|
rpmfile
|
2022-06-26 10:26:21 +00:00
|
|
|
setuptools
|
|
|
|
xmlschema
|
2024-05-15 15:35:15 +00:00
|
|
|
zstandard
|
|
|
|
];
|
|
|
|
|
|
|
|
optional-dependencies = {
|
2024-09-19 14:19:46 +00:00
|
|
|
pdf = [ reportlab ];
|
2024-05-15 15:35:15 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
propagatedBuildInputs = [ pip ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
pythonImportsCheck = [ "cve_bin_tool" ];
|
2021-04-26 19:14:03 +00:00
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru.tests.version = testers.testVersion { package = cve-bin-tool; };
|
2022-06-26 10:26:21 +00:00
|
|
|
|
2021-04-26 19:14:03 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "CVE Binary Checker Tool";
|
|
|
|
homepage = "https://github.com/intel/cve-bin-tool";
|
2022-06-26 10:26:21 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
}
|