17 buildPythonPackage rec {
18 pname = "lightning-utilities";
22 src = fetchFromGitHub {
23 owner = "Lightning-AI";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-lp/+ArgoMIa7Q2ufWghr8OYUMlFcj8123Et73ORNI5U=";
33 propagatedBuildInputs = [
38 pythonImportsCheck = [
48 "lightning_utilities.core.enums.StrEnum"
49 "lightning_utilities.core.imports.RequirementCache"
50 "lightning_utilities.core.imports.compare_version"
51 "lightning_utilities.core.imports.get_dependency_min_version_spec"
52 # weird doctests fail on imports, but providing the dependency
54 "lightning_utilities.core.imports.ModuleAvailableCache"
55 "lightning_utilities.core.imports.requires"
60 # doctests that expect docs.txt in the wrong location
61 "src/lightning_utilities/install/requirements.py"
65 # warns about distutils removal in python 3.12
66 "-W" "ignore::DeprecationWarning"
70 changelog = "https://github.com/Lightning-AI/utilities/releases/tag/v${version}";
71 description = "Common Python utilities and GitHub Actions in Lightning Ecosystem";
72 homepage = "https://github.com/Lightning-AI/utilities";
73 license = licenses.asl20;
74 maintainers = with maintainers; [ hexa ];