2015-10-27 10:23:12 +00:00
|
|
|
{ stdenv, python27Packages, fetchFromGitHub }:
|
2014-03-29 22:03:35 +00:00
|
|
|
|
2016-02-19 12:12:11 +00:00
|
|
|
python27Packages.buildPythonApplication rec {
|
2020-12-30 17:51:10 +00:00
|
|
|
pname = "printrun";
|
|
|
|
version = "1.6.0";
|
2015-10-27 10:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "kliment";
|
|
|
|
repo = "Printrun";
|
2020-12-30 17:51:10 +00:00
|
|
|
rev = "${pname}-${version}";
|
|
|
|
sha256 = "0nhcx1bi1hals0a6d6994y0kcwsfqx3hplwbmn9136hgrplg0l2l";
|
2014-03-29 22:03:35 +00:00
|
|
|
};
|
|
|
|
|
2015-10-27 10:23:12 +00:00
|
|
|
propagatedBuildInputs = with python27Packages; [
|
2016-08-16 20:51:21 +00:00
|
|
|
wxPython30 pyserial dbus-python psutil numpy pyopengl pyglet cython
|
2015-10-27 10:23:12 +00:00
|
|
|
];
|
2014-03-29 22:03:35 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-11-20 12:48:30 +00:00
|
|
|
setupPyBuildFlags = ["-i"];
|
|
|
|
|
2014-03-29 22:03:35 +00:00
|
|
|
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";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/kliment/Printrun";
|
2014-03-29 22:03:35 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|