tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
printrun: 2.0.0rc5 -> 2.0.0
Weijia Wang
2 years ago
e0766668
2356c1ea
+13
-9
1 changed file
expand all
collapse all
unified
split
pkgs
applications
misc
printrun
default.nix
+13
-9
pkgs/applications/misc/printrun/default.nix
···
2
3
python3Packages.buildPythonApplication rec {
4
pname = "printrun";
5
-
version = "2.0.0rc5";
6
7
src = fetchFromGitHub {
8
owner = "kliment";
9
repo = "Printrun";
10
-
rev = "${pname}-${version}";
11
-
sha256 = "179x8lwrw2h7cxnkq7izny6qcb4nhjnd8zx893i77zfhzsa6kx81";
12
};
13
0
0
0
0
0
0
0
14
nativeBuildInputs = [ glib wrapGAppsHook ];
15
16
propagatedBuildInputs = with python3Packages; [
17
-
appdirs cython dbus-python numpy six wxPython_4_0 psutil pyglet pyopengl pyserial
18
];
19
0
20
doCheck = false;
21
22
setupPyBuildFlags = ["-i"];
23
-
24
-
postPatch = ''
25
-
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
26
-
'';
27
28
postInstall = ''
29
for f in $out/share/applications/*.desktop; do
···
40
meta = with lib; {
41
description = "Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software";
42
homepage = "https://github.com/kliment/Printrun";
43
-
license = licenses.gpl3;
44
platforms = platforms.linux;
45
};
46
}
···
2
3
python3Packages.buildPythonApplication rec {
4
pname = "printrun";
5
+
version = "2.0.0";
6
7
src = fetchFromGitHub {
8
owner = "kliment";
9
repo = "Printrun";
10
+
rev = "printrun-${version}";
11
+
hash = "sha256-ijJc0CVPiYW5VjTqhY1kO+Fy3dfuPoMn7KRhvcsdAZw=";
12
};
13
14
+
postPatch = ''
15
+
substituteInPlace requirements.txt \
16
+
--replace "pyglet >= 1.1, < 2.0" "pyglet" \
17
+
--replace "cairosvg >= 1.0.9, < 2.6.0" "cairosvg"
18
+
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
19
+
'';
20
+
21
nativeBuildInputs = [ glib wrapGAppsHook ];
22
23
propagatedBuildInputs = with python3Packages; [
24
+
appdirs cython dbus-python numpy six wxPython_4_2 psutil pyglet pyopengl pyserial cffi cairosvg lxml
25
];
26
27
+
# pyglet.canvas.xlib.NoSuchDisplayException: Cannot connect to "None"
28
doCheck = false;
29
30
setupPyBuildFlags = ["-i"];
0
0
0
0
31
32
postInstall = ''
33
for f in $out/share/applications/*.desktop; do
···
44
meta = with lib; {
45
description = "Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software";
46
homepage = "https://github.com/kliment/Printrun";
47
+
license = licenses.gpl3Plus;
48
platforms = platforms.linux;
49
};
50
}