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