Merge pull request #312096 from r-ryantm/auto-update/python311Packages.cvelib
python311Packages.cvelib: 1.3.0 -> 1.4.0
This commit is contained in:
@@ -1,48 +1,55 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, click
|
||||
, fetchFromGitHub
|
||||
, jsonschema
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, requests
|
||||
, testers
|
||||
, cve
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
click,
|
||||
cve,
|
||||
fetchFromGitHub,
|
||||
jsonschema,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
requests,
|
||||
setuptools,
|
||||
testers,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "cvelib";
|
||||
version = "1.3.0";
|
||||
format = "setuptools";
|
||||
version = "1.4.0";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "RedHatProductSecurity";
|
||||
repo = "cvelib";
|
||||
rev = "tags/${version}";
|
||||
hash = "sha256-PCZUAKgE80PD//4qK8ap55IN9vtx9WdpRZUAC3UdaWM=";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-nj5bkep8jYJE1qh2zNxivjKOpHj93UZ8bU+qNs2On8s=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"cvelib"
|
||||
];
|
||||
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";
|
||||
|
||||
Reference in New Issue
Block a user