at 24.05-pre 1.0 kB view raw
1{ lib 2, buildPythonPackage 3, click 4, fetchFromGitHub 5, jsonschema 6, pytestCheckHook 7, pythonOlder 8, requests 9, testers 10, cve 11}: 12 13buildPythonPackage rec { 14 pname = "cvelib"; 15 version = "1.2.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "RedHatProductSecurity"; 22 repo = "cvelib"; 23 rev = "tags/${version}"; 24 hash = "sha256-hJPcxnc4iQzsYNNVJ9fw6yQl+5K7pdtjHT6oMmBx/Zs="; 25 }; 26 27 SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}"; 28 29 propagatedBuildInputs = [ 30 click 31 jsonschema 32 requests 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "cvelib" 41 ]; 42 43 passthru.tests.version = testers.testVersion { package = cve; }; 44 45 meta = with lib; { 46 description = "Library and a command line interface for the CVE Services API"; 47 homepage = "https://github.com/RedHatProductSecurity/cvelib"; 48 license = licenses.mit; 49 maintainers = with maintainers; [ raboof ]; 50 mainProgram = "cve"; 51 }; 52}