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.3.0";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "nexB";
20 repo = "license-expression";
21 rev = "refs/tags/v${version}";
22 hash = "sha256-nHqfnetVyz4W2Q6onH0mU/4x9e/vD4rbl9DF4TYqWzs=";
23 };
24
25 dontConfigure = true;
26
27 nativeBuildInputs = [ setuptools-scm ];
28
29 propagatedBuildInputs = [ 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/nexB/license-expression";
38 changelog = "https://github.com/nexB/license-expression/blob/v${version}/CHANGELOG.rst";
39 license = licenses.asl20;
40 maintainers = with maintainers; [ fab ];
41 };
42}