python310Packages.cvss: init at 2.5

This commit is contained in:
Fabian Affolter 2022-11-24 15:30:00 +01:00
parent 40d418d6e6
commit 4df5f3f264
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, jsonschema
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "cvss";
version = "2.5";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "RedHatProductSecurity";
repo = pname;
rev = "refs/tags/v${version}";
sha256 = "sha256-6S646cvm+UwdpRGOtCuNijWcUxhZD6IG407hNBz+NA4=";
};
checkInputs = [
jsonschema
pytestCheckHook
];
pythonImportsCheck = [
"cvss"
];
disabledTests = [
# Tests require additional data
"test_calculator"
"test_cvsslib"
"test_json_ordering"
"test_json_schema_repr"
"test_random"
"test_rh_vector"
"test_simple"
"test_simple_31"
];
meta = with lib; {
description = "Library for CVSS2/3";
homepage = "https://github.com/RedHatProductSecurity/cvss";
changelog = "https://github.com/RedHatProductSecurity/cvss/releases/tag/v${version}";
license = with licenses; [ lgpl3Plus ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -2080,6 +2080,8 @@ self: super: with self; {
cvelib = callPackage ../development/python-modules/cvelib { };
cvss = callPackage ../development/python-modules/cvss { };
cvxopt = callPackage ../development/python-modules/cvxopt { };
cvxpy = callPackage ../development/python-modules/cvxpy { };