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.1.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchFromGitHub {
18 owner = "nexB";
19 repo = "license-expression";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-5pRfFRQLxWmhEKoJZiC7gZbmW8BbqBNBWbdwFL0MtpM=";
22 };
23
24 SETUPTOOLS_SCM_PRETEND_VERSION = version;
25
26 dontConfigure = true;
27
28 nativeBuildInputs = [
29 setuptools-scm
30 ];
31
32 propagatedBuildInputs = [
33 boolean-py
34 ];
35
36 nativeCheckInputs = [
37 pytestCheckHook
38 ];
39
40 pythonImportsCheck = [
41 "license_expression"
42 ];
43
44 meta = with lib; {
45 description = "Utility library to parse, normalize and compare License expressions";
46 homepage = "https://github.com/nexB/license-expression";
47 changelog = "https://github.com/nexB/license-expression/blob/v${version}/CHANGELOG.rst";
48 license = licenses.asl20;
49 maintainers = with maintainers; [ fab ];
50 };
51}