blob: 7aea8a6a4919296788dbb93ca9571d7cd25e5752 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
{
lib,
buildPythonPackage,
click,
cve,
fetchFromGitHub,
jsonschema,
pytestCheckHook,
requests,
hatchling,
testers,
}:
buildPythonPackage rec {
pname = "cvelib";
version = "1.8.0";
pyproject = true;
src = fetchFromGitHub {
owner = "RedHatProductSecurity";
repo = "cvelib";
tag = version;
hash = "sha256-lbwrZSzJaP+nKFwt7xiq/LTzgOuf8aELxjrxEKkYpfc=";
};
build-system = [ hatchling ];
dependencies = [
click
jsonschema
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cvelib" ];
passthru.tests.version = testers.testVersion { package = cve; };
meta = {
description = "Library and a command line interface for the CVE Services API";
homepage = "https://github.com/RedHatProductSecurity/cvelib";
changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ raboof ];
mainProgram = "cve";
};
}
|