Files
nixpkgs/pkgs/development/python-modules/cvelib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
click,
cve,
fetchFromGitHub,
jsonschema,
pytestCheckHook,
pythonOlder,
requests,
hatchling,
testers,
}:
buildPythonPackage rec {
pname = "cvelib";
version = "1.8.0";
pyproject = true;
disabled = pythonOlder "3.7";
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";
};
}