at 24.05-pre 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, jsonschema 5, pytestCheckHook 6, pythonOlder 7}: 8 9buildPythonPackage rec { 10 pname = "cvss"; 11 version = "2.6"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "RedHatProductSecurity"; 18 repo = pname; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-gD9MreJQPaxziy02Wt3BGFiIoQ/+pW3KqiNfNlTijJY="; 21 }; 22 23 nativeCheckInputs = [ 24 jsonschema 25 pytestCheckHook 26 ]; 27 28 pythonImportsCheck = [ 29 "cvss" 30 ]; 31 32 disabledTests = [ 33 # Tests require additional data 34 "test_calculator" 35 "test_cvsslib" 36 "test_json_ordering" 37 "test_json_schema_repr" 38 "test_random" 39 "test_rh_vector" 40 "test_simple" 41 "test_simple_31" 42 ]; 43 44 meta = with lib; { 45 description = "Library for CVSS2/3"; 46 homepage = "https://github.com/RedHatProductSecurity/cvss"; 47 changelog = "https://github.com/RedHatProductSecurity/cvss/releases/tag/v${version}"; 48 license = with licenses; [ lgpl3Plus ]; 49 maintainers = with maintainers; [ fab ]; 50 }; 51}