1{ lib 2, boolean-py 3, buildPythonPackage 4, fetchFromGitHub 5, pytestCheckHook 6, pythonOlder 7, setuptools-scm 8}: 9 10buildPythonPackage rec { 11 pname = "license-expression"; 12 version = "30.0.0"; 13 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "nexB"; 18 repo = "license-expression"; 19 rev = "v${version}"; 20 hash = "sha256-tGXNZm9xH8sXa7dtBFsTzGgT+hfbmkwps7breR7KUWU="; 21 }; 22 23 SETUPTOOLS_SCM_PRETEND_VERSION = version; 24 25 dontConfigure = true; 26 27 nativeBuildInputs = [ 28 setuptools-scm 29 ]; 30 31 propagatedBuildInputs = [ 32 boolean-py 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ 40 "license_expression" 41 ]; 42 43 meta = with lib; { 44 description = "Utility library to parse, normalize and compare License expressions"; 45 homepage = "https://github.com/nexB/license-expression"; 46 license = licenses.asl20; 47 maintainers = with maintainers; [ fab ]; 48 }; 49}