tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python313Packages.lightning: init at 2.5.1
Ben Darwin
11 months ago
a75ec05c
60273edc
+45
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
lightning
default.nix
top-level
python-packages.nix
+43
pkgs/development/python-modules/lightning/default.nix
···
1
1
+
{
2
2
+
lib,
3
3
+
buildPythonPackage,
4
4
+
fetchFromGitHub,
5
5
+
6
6
+
# build-system
7
7
+
setuptools,
8
8
+
9
9
+
# dependencies
10
10
+
pytorch-lightning,
11
11
+
12
12
+
# tests
13
13
+
psutil,
14
14
+
pytestCheckHook,
15
15
+
}:
16
16
+
17
17
+
buildPythonPackage {
18
18
+
pname = "lightning";
19
19
+
pyproject = true;
20
20
+
21
21
+
inherit (pytorch-lightning)
22
22
+
version
23
23
+
src
24
24
+
build-system
25
25
+
meta
26
26
+
;
27
27
+
28
28
+
dependencies = pytorch-lightning.dependencies ++ [ pytorch-lightning ];
29
29
+
30
30
+
nativeCheckInputs = [
31
31
+
psutil
32
32
+
pytestCheckHook
33
33
+
];
34
34
+
35
35
+
# Some packages are not in NixPkgs; other tests try to build distributed
36
36
+
# models, which doesn't work in the sandbox.
37
37
+
doCheck = false;
38
38
+
39
39
+
pythonImportsCheck = [
40
40
+
"lightning"
41
41
+
"lightning.pytorch"
42
42
+
];
43
43
+
}
+2
pkgs/top-level/python-packages.nix
···
7869
7869
7870
7870
lightify = callPackage ../development/python-modules/lightify { };
7871
7871
7872
7872
+
lightning = callPackage ../development/python-modules/lightning { };
7873
7873
+
7872
7874
lightning-utilities = callPackage ../development/python-modules/lightning-utilities { };
7873
7875
7874
7876
lightparam = callPackage ../development/python-modules/lightparam { };