60f07311b9
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
50 lines
951 B
Nix
50 lines
951 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, click
|
|
, fetchFromGitHub
|
|
, jsonschema
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, requests
|
|
, testers
|
|
, cve
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cvelib";
|
|
version = "1.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RedHatProductSecurity";
|
|
repo = "cvelib";
|
|
rev = "tags/${version}";
|
|
hash = "sha256-PCZUAKgE80PD//4qK8ap55IN9vtx9WdpRZUAC3UdaWM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
click
|
|
jsonschema
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"cvelib"
|
|
];
|
|
|
|
passthru.tests.version = testers.testVersion { package = cve; };
|
|
|
|
meta = with lib; {
|
|
description = "Library and a command line interface for the CVE Services API";
|
|
homepage = "https://github.com/RedHatProductSecurity/cvelib";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ raboof ];
|
|
mainProgram = "cve";
|
|
};
|
|
}
|