1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-06-09 17:46:29 +09:00
nixpkgs/pkgs/development/python-modules/nvdlib/default.nix
2025-03-22 16:02:23 +00:00

44 lines
914 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
responses,
setuptools,
}:
buildPythonPackage rec {
pname = "nvdlib";
version = "0.8.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Vehemont";
repo = "nvdlib";
tag = "v${version}";
hash = "sha256-fj7tgTv3r++oo+45QFQy/rmXYdKyKhR74maHOdp+0yA=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ requests ];
nativeCheckInputs = [
pytestCheckHook
responses
];
pythonImportsCheck = [ "nvdlib" ];
meta = with lib; {
description = "Module to interact with the National Vulnerability CVE/CPE API";
homepage = "https://github.com/Vehemont/nvdlib/";
changelog = "https://github.com/vehemont/nvdlib/releases/tag/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}