python310Packages.cvelib: 1.0.0 -> 1.1.0
https://github.com/RedHatProductSecurity/cvelib/releases/tag/1.1.0 - switch to pytestCheckHook
This commit is contained in:
parent
6d7adea228
commit
b662223102
1 changed files with 23 additions and 8 deletions
|
@ -1,30 +1,45 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
, fetchFromGitHub
|
, buildPythonPackage
|
||||||
, requests
|
|
||||||
, click
|
, click
|
||||||
, lib
|
, fetchFromGitHub
|
||||||
|
, jsonschema
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, requests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "cvelib";
|
pname = "cvelib";
|
||||||
version = "1.0.0";
|
version = "1.1.0";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "RedHatProductSecurity";
|
owner = "RedHatProductSecurity";
|
||||||
repo = "cvelib";
|
repo = "cvelib";
|
||||||
rev = "tags/${version}";
|
rev = "tags/${version}";
|
||||||
sha256 = "sha256-KUj9Cnvl7r8NMmZvVj5CB0uZvLNK5aHcLc+NzxFrv0I=";
|
hash = "sha256-MZzCTUleEddIlZBRhxD8ZgaWAOFcpa5hvNuIjrBJRzk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
SETUPTOOLS_SCM_PRETEND_VERSION = "v${version}";
|
||||||
propagatedBuildInputs = [ requests click ];
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
click
|
||||||
|
jsonschema
|
||||||
|
requests
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
"cvelib"
|
"cvelib"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A library and a command line interface for the CVE Services API";
|
description = "Library and a command line interface for the CVE Services API";
|
||||||
homepage = "https://github.com/RedHatProductSecurity/cvelib";
|
homepage = "https://github.com/RedHatProductSecurity/cvelib";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ raboof ];
|
maintainers = with maintainers; [ raboof ];
|
||||||
|
|
Loading…
Reference in a new issue