Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.2 kB · 57 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ lib, buildPythonPackage, click, cve, fetchFromGitHub, jsonschema, pytestCheckHook, pythonOlder, requests, setuptools, testers,}:
buildPythonPackage rec { pname = "cvelib"; version = "1.7.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "RedHatProductSecurity"; repo = "cvelib"; tag = version; hash = "sha256-AhA+2lEI/hsbIVCfSWO0vI6eWkObjsq5xYOSqVvUPkU="; };
postPatch = '' # collective.checkdocs is unmaintained for over 10 years substituteInPlace pyproject.toml \ --replace-fail '"collective.checkdocs",' "" '';
build-system = [ setuptools ];
dependencies = [ 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"; changelog = "https://github.com/RedHatProductSecurity/cvelib/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ raboof ]; mainProgram = "cve"; };}