1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 pythonOlder,
7 requests,
8 responses,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "nvdlib";
14 version = "0.8.3";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "Vehemont";
21 repo = "nvdlib";
22 tag = "v${version}";
23 hash = "sha256-FjeYJMMccao9KJMcJBKtt5QhpQEEbcPyNunj+VqMdx0=";
24 };
25
26 nativeBuildInputs = [ setuptools ];
27
28 propagatedBuildInputs = [ requests ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 responses
33 ];
34
35 pythonImportsCheck = [ "nvdlib" ];
36
37 meta = with lib; {
38 description = "Module to interact with the National Vulnerability CVE/CPE API";
39 homepage = "https://github.com/Vehemont/nvdlib/";
40 changelog = "https://github.com/vehemont/nvdlib/releases/tag/${src.tag}";
41 license = licenses.mit;
42 maintainers = with maintainers; [ fab ];
43 };
44}