2021-04-26 19:14:03 +00:00
|
|
|
{ lib
|
2021-10-01 09:20:50 +00:00
|
|
|
, buildPythonApplication
|
2021-04-26 19:14:03 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, jsonschema
|
|
|
|
, plotly
|
|
|
|
, pytest
|
|
|
|
, pytest-xdist
|
|
|
|
, pytest-cov
|
|
|
|
, pytest-asyncio
|
|
|
|
, beautifulsoup4
|
|
|
|
, pyyaml
|
|
|
|
, isort
|
|
|
|
, py
|
|
|
|
, jinja2
|
|
|
|
, rpmfile
|
|
|
|
, reportlab
|
|
|
|
, zstandard
|
|
|
|
, rich
|
|
|
|
, aiohttp
|
|
|
|
, toml
|
2021-10-01 09:20:50 +00:00
|
|
|
, distro
|
2021-04-26 19:14:03 +00:00
|
|
|
# aiohttp[speedups]
|
|
|
|
, aiodns
|
|
|
|
, brotlipy
|
|
|
|
, cchardet
|
|
|
|
, pillow
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2021-10-01 09:20:50 +00:00
|
|
|
buildPythonApplication rec {
|
2021-04-26 19:14:03 +00:00
|
|
|
pname = "cve-bin-tool";
|
2021-12-26 17:43:05 +00:00
|
|
|
version = "3.0";
|
2021-04-26 19:14:03 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "intel";
|
|
|
|
repo = "cve-bin-tool";
|
2021-10-01 09:20:50 +00:00
|
|
|
rev = "v${version}";
|
2021-12-26 17:43:05 +00:00
|
|
|
sha256 = "1fmdnlhi03fdr4d4n7ydf6m0gx0cl77n3db8ldbs3m9zryblhzpr";
|
2021-04-26 19:14:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# Wants to open a sqlite database, access the internet, etc
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
jsonschema
|
|
|
|
plotly
|
|
|
|
pytest
|
|
|
|
pytest-xdist
|
|
|
|
pytest-cov
|
|
|
|
pytest-asyncio
|
|
|
|
beautifulsoup4
|
|
|
|
pyyaml
|
|
|
|
isort
|
|
|
|
py
|
|
|
|
jinja2
|
|
|
|
rpmfile
|
|
|
|
reportlab
|
|
|
|
zstandard
|
|
|
|
rich
|
|
|
|
aiohttp
|
|
|
|
toml
|
2021-10-01 09:20:50 +00:00
|
|
|
distro
|
2021-04-26 19:14:03 +00:00
|
|
|
# aiohttp[speedups]
|
|
|
|
aiodns
|
|
|
|
brotlipy
|
|
|
|
cchardet
|
|
|
|
# needed by brotlipy
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"cve_bin_tool"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "CVE Binary Checker Tool";
|
|
|
|
homepage = "https://github.com/intel/cve-bin-tool";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|