1{ buildPythonPackage
2, fetchFromGitHub
3, requests
4, click
5, lib
6}:
7
8buildPythonPackage rec {
9 pname = "cvelib";
10 version = "1.0.0";
11
12 src = fetchFromGitHub {
13 owner = "RedHatProductSecurity";
14 repo = "cvelib";
15 rev = "tags/${version}";
16 sha256 = "sha256-KUj9Cnvl7r8NMmZvVj5CB0uZvLNK5aHcLc+NzxFrv0I=";
17 };
18
19 SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
20 propagatedBuildInputs = [ requests click ];
21
22 pythonImportsCheck = [
23 "cvelib"
24 ];
25
26 meta = with lib; {
27 description = "A library and a command line interface for the CVE Services API";
28 homepage = "https://github.com/RedHatProductSecurity/cvelib";
29 license = licenses.mit;
30 maintainers = with maintainers; [ raboof ];
31 };
32}