Files
nixpkgs/pkgs/development/python-modules/license-expression/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

43 lines
990 B
Nix

{
lib,
boolean-py,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "license-expression";
version = "30.4.4";
pyproject = true;
disabled = pythonOlder "3.9";
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 ];
};
}