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