diff options
| author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-11-24 15:30:00 +0100 |
|---|---|---|
| committer | Fabian Affolter <mail@fabian-affolter.ch> | 2022-11-24 15:30:00 +0100 |
| commit | 4df5f3f264dc5fae25c0948980ec29fa93cc4a83 (patch) | |
| tree | 11dd84342eeaf6917a814fcce930fcaf3eb712dd /pkgs/development/python-modules/cvss | |
| parent | Merge pull request #202565 from fabaff/meshtastic-bump (diff) | |
| download | nixpkgs-4df5f3f264dc5fae25c0948980ec29fa93cc4a83.tar.gz | |
python310Packages.cvss: init at 2.5
Diffstat (limited to 'pkgs/development/python-modules/cvss')
| -rw-r--r-- | pkgs/development/python-modules/cvss/default.nix | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/cvss/default.nix b/pkgs/development/python-modules/cvss/default.nix new file mode 100644 index 000000000000..d48d6be586e5 --- /dev/null +++ b/pkgs/development/python-modules/cvss/default.nix @@ -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 ]; + }; +} |
