generated from nix-community/nur-packages-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpythonScope.nix
More file actions
47 lines (40 loc) · 1.16 KB
/
pythonScope.nix
File metadata and controls
47 lines (40 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# FIXME: This is one huge pile of mess that hasn't been maintained since, about, early 2024.
{
lib,
newScope,
withSomePkgs ? null,
}:
lib.makeScope newScope (
self:
let
some-pkgs =
if withSomePkgs != null then
withSomePkgs
else
(self.callPackage ./scope.nix { withSomePkgsPy = self; });
# FIXME: Recover splicing (python3Packages) once https://github.com/NixOS/nixpkgs/pull/394838 is fixed
python3Packages = self.callPackage ({ python }: python.pkgs) { };
in
lib.autocallByName self.callPackage ./python-packages/by-name
// {
inherit some-pkgs;
cppcolormap = self.callPackage (
{ toPythonModule, some-pkgs }:
some-pkgs.cppcolormap.override {
enablePython = true;
inherit python3Packages;
}
) { };
some-pkgs-faiss = self.callPackage (
{ toPythonModule }:
toPythonModule (
some-pkgs.faiss.override {
pythonSupport = true;
inherit python3Packages;
}
)
) { };
instant-ngp = self.callPackage ./python-packages/by-name/in/instant-ngp/package.nix { };
quad-tree-loftr = self.quad-tree-attention.feature-matching;
}
)