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 = "21.6.14";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchFromGitHub {
17 owner = "nexB";
18 repo = "license-expression";
19 rev = "v${version}";
20 sha256 = "sha256-hwfYKKalo8WYFwPCsRRXNz+/F8/42PXA8jxbIQjJH/g=";
21 };
22
23 dontConfigure = true;
24
25 nativeBuildInputs = [
26 setuptools-scm
27 ];
28
29 propagatedBuildInputs = [
30 boolean-py
31 ];
32
33 checkInputs = [
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "license_expression" ];
38
39 meta = with lib; {
40 description = "Utility library to parse, normalize and compare License expressions for Python";
41 homepage = "https://github.com/nexB/license-expression";
42 license = licenses.asl20;
43 maintainers = with maintainers; [ fab ];
44 };
45}