python313Packages.lightning: init at 2.5.1

This commit is contained in:
Ben Darwin
2025-04-09 13:20:31 -04:00
parent 60273edc86
commit a75ec05cc8
2 changed files with 45 additions and 0 deletions
@@ -0,0 +1,43 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
pytorch-lightning,
# tests
psutil,
pytestCheckHook,
}:
buildPythonPackage {
pname = "lightning";
pyproject = true;
inherit (pytorch-lightning)
version
src
build-system
meta
;
dependencies = pytorch-lightning.dependencies ++ [ pytorch-lightning ];
nativeCheckInputs = [
psutil
pytestCheckHook
];
# Some packages are not in NixPkgs; other tests try to build distributed
# models, which doesn't work in the sandbox.
doCheck = false;
pythonImportsCheck = [
"lightning"
"lightning.pytorch"
];
}
+2
View File
@@ -7869,6 +7869,8 @@ self: super: with self; {
lightify = callPackage ../development/python-modules/lightify { };
lightning = callPackage ../development/python-modules/lightning { };
lightning-utilities = callPackage ../development/python-modules/lightning-utilities { };
lightparam = callPackage ../development/python-modules/lightparam { };