1{ 2 lib, 3 boolean-py, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 setuptools-scm, 9}: 10 11buildPythonPackage rec { 12 pname = "license-expression"; 13 version = "30.4.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.9"; 17 18 src = fetchFromGitHub { 19 owner = "aboutcode-org"; 20 repo = "license-expression"; 21 tag = "v${version}"; 22 hash = "sha256-Bgkm0nhu/jeqtg3444R2encCtfzd7xnwyCXlZWaYSQ0="; 23 }; 24 25 dontConfigure = true; 26 27 build-system = [ setuptools-scm ]; 28 29 dependencies = [ boolean-py ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 pythonImportsCheck = [ "license_expression" ]; 34 35 meta = with lib; { 36 description = "Utility library to parse, normalize and compare License expressions"; 37 homepage = "https://github.com/aboutcode-org/license-expression"; 38 changelog = "https://github.com/aboutcode-org/license-expression/blob/${src.tag}/CHANGELOG.rst"; 39 license = licenses.asl20; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}