1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, jsonschema
5, plotly
6, pytest
7, pytest-xdist
8, pytest-cov
9, pytest-asyncio
10, beautifulsoup4
11, pyyaml
12, isort
13, py
14, jinja2
15, rpmfile
16, reportlab
17, zstandard
18, rich
19, aiohttp
20, toml
21 # aiohttp[speedups]
22, aiodns
23, brotlipy
24, cchardet
25, pillow
26, pytestCheckHook
27}:
28buildPythonPackage {
29 pname = "cve-bin-tool";
30 version = "unstable-2021-04-15";
31
32 src = fetchFromGitHub {
33 owner = "intel";
34 repo = "cve-bin-tool";
35 rev = "10cb6fd0baffe35babfde024bc8c70aa58629237";
36 sha256 = "STf0tJBpadBqsbC+MghBai8zahDkrXfLoFRJ+84wvvY=";
37 };
38
39 # Wants to open a sqlite database, access the internet, etc
40 doCheck = false;
41
42 propagatedBuildInputs = [
43 jsonschema
44 plotly
45 pytest
46 pytest-xdist
47 pytest-cov
48 pytest-asyncio
49 beautifulsoup4
50 pyyaml
51 isort
52 py
53 jinja2
54 rpmfile
55 reportlab
56 zstandard
57 rich
58 aiohttp
59 toml
60
61 # aiohttp[speedups]
62 aiodns
63 brotlipy
64 cchardet
65 # needed by brotlipy
66 pillow
67 ];
68
69 checkInputs = [
70 pytestCheckHook
71 ];
72
73 pythonImportsCheck = [
74 "cve_bin_tool"
75 ];
76
77 meta = with lib; {
78 description = "CVE Binary Checker Tool";
79 homepage = "https://github.com/intel/cve-bin-tool";
80 license = licenses.gpl3Only;
81 maintainers = teams.determinatesystems.members;
82 };
83}