Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 79 lines
Nix
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980{ lib, buildPythonPackage, fetchFromGitHub,
# build-system packaging, setuptools,
# dependencies jsonargparse, tomlkit, typing-extensions,
# tests pytest-timeout, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "lightning-utilities"; version = "0.15.3"; pyproject = true;
src = fetchFromGitHub { owner = "Lightning-AI"; repo = "utilities"; tag = "v${finalAttrs.version}"; hash = "sha256-j997nvn6iRFvJeI8wJbickUDPc5Zyi1Lj4yG2JbaLU8="; };
build-system = [ packaging setuptools ];
dependencies = [ jsonargparse packaging tomlkit typing-extensions ];
pythonImportsCheck = [ "lightning_utilities" ];
nativeCheckInputs = [ pytest-timeout pytestCheckHook ];
disabledTests = [ # DocTestFailure "lightning_utilities.core.imports.RequirementCache"
# NameError: name 'operator' is not defined. Did you forget to import 'operator' "lightning_utilities.core.imports.compare_version"
# importlib.metadata.PackageNotFoundError: No package metadata was found for pytorch-lightning==1.8.0 "lightning_utilities.core.imports.get_dependency_min_version_spec"
# weird doctests fail on imports, but providing the dependency # fails another test "lightning_utilities.core.imports.ModuleAvailableCache" ];
disabledTestPaths = [ "docs" # doctests that expect docs.txt in the wrong location "src/lightning_utilities/install/requirements.py" ];
meta = { changelog = "https://github.com/Lightning-AI/utilities/releases/tag/${finalAttrs.src.tag}"; description = "Common Python utilities and GitHub Actions in Lightning Ecosystem"; homepage = "https://github.com/Lightning-AI/utilities"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ GaetanLepage ]; };})