diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-24 20:35:42 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2024-01-24 20:35:42 +0100 |
commit | eb81a1530f183dcb65456aae2287872044aa10c1 (patch) | |
tree | 3975196062054d87e59ac72cf6fbb4096c0473d1 /pkgs/development | |
parent | deba75a284e0928c4249e00a2eb0994d44d1fe01 (diff) |
python311Packages.cvss: 2.6 -> 3.0
Diff: https://github.com/RedHatProductSecurity/cvss/compare/refs/tags/v2.6...v3.0 Changelog: https://github.com/RedHatProductSecurity/cvss/releases/tag/v3.0
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/cvss/default.nix | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/pkgs/development/python-modules/cvss/default.nix b/pkgs/development/python-modules/cvss/default.nix index 140852cb98be1..120325a7b8e58 100644 --- a/pkgs/development/python-modules/cvss/default.nix +++ b/pkgs/development/python-modules/cvss/default.nix @@ -2,47 +2,44 @@ , buildPythonPackage , fetchFromGitHub , jsonschema -, pytestCheckHook +, unittestCheckHook , pythonOlder +, setuptools }: buildPythonPackage rec { pname = "cvss"; - version = "2.6"; - format = "setuptools"; + version = "3.0"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "RedHatProductSecurity"; - repo = pname; + repo = "cvss"; rev = "refs/tags/v${version}"; - hash = "sha256-gD9MreJQPaxziy02Wt3BGFiIoQ/+pW3KqiNfNlTijJY="; + hash = "sha256-xrkWpE13Y4KgQEZjitWE3Ka+IyfShqE2cj0/yzsAnX4="; }; + nativeBuildInputs = [ + setuptools + ]; + nativeCheckInputs = [ jsonschema - pytestCheckHook + unittestCheckHook ]; 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" - ]; + preCheck = '' + cd tests + ''; meta = with lib; { - description = "Library for CVSS2/3"; + description = "Library for CVSS2/3/4"; homepage = "https://github.com/RedHatProductSecurity/cvss"; changelog = "https://github.com/RedHatProductSecurity/cvss/releases/tag/v${version}"; license = with licenses; [ lgpl3Plus ]; |