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