Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 click, 5 cve, 6 fetchFromGitHub, 7 jsonschema, 8 pytestCheckHook, 9 pythonOlder, 10 requests, 11 hatchling, 12 testers, 13}: 14 15buildPythonPackage rec { 16 pname = "cvelib"; 17 version = "1.8.0"; 18 pyproject = true; 19 20 disabled = pythonOlder "3.7"; 21 22 src = fetchFromGitHub { 23 owner = "RedHatProductSecurity"; 24 repo = "cvelib"; 25 tag = version; 26 hash = "sha256-lbwrZSzJaP+nKFwt7xiq/LTzgOuf8aELxjrxEKkYpfc="; 27 }; 28 29 build-system = [ hatchling ]; 30 31 dependencies = [ 32 click 33 jsonschema 34 requests 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "cvelib" ]; 40 41 passthru.tests.version = testers.testVersion { package = cve; }; 42 43 meta = with lib; { 44 description = "Library and a command line interface for the CVE Services API"; 45 homepage = "https://github.com/RedHatProductSecurity/cvelib"; 46 changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${src.tag}/CHANGELOG.md"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ raboof ]; 49 mainProgram = "cve"; 50 }; 51}