ffc78d3539
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
38 lines
967 B
Nix
38 lines
967 B
Nix
{ stdenv, python27Packages, fetchFromGitHub }:
|
|
|
|
python27Packages.buildPythonApplication rec {
|
|
pname = "printrun";
|
|
version = "1.6.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kliment";
|
|
repo = "Printrun";
|
|
rev = "${pname}-${version}";
|
|
sha256 = "0nhcx1bi1hals0a6d6994y0kcwsfqx3hplwbmn9136hgrplg0l2l";
|
|
};
|
|
|
|
propagatedBuildInputs = with python27Packages; [
|
|
wxPython30 pyserial dbus-python psutil numpy pyopengl pyglet cython
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
setupPyBuildFlags = ["-i"];
|
|
|
|
postPatch = ''
|
|
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
|
|
'';
|
|
|
|
postInstall = ''
|
|
for f in $out/share/applications/*.desktop; do
|
|
sed -i -e "s|/usr/|$out/|g" "$f"
|
|
done
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Pronterface, Pronsole, and Printcore - Pure Python 3d printing host software";
|
|
homepage = "https://github.com/kliment/Printrun";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|