2021-01-25 08:26:54 +00:00
|
|
|
{ lib, python3Packages, fetchFromGitHub }:
|
2014-03-29 22:03:35 +00:00
|
|
|
|
2020-06-14 01:25:11 +00:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-12-30 17:51:10 +00:00
|
|
|
pname = "printrun";
|
2020-06-14 01:25:11 +00:00
|
|
|
version = "2.0.0rc5";
|
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}";
|
2020-06-14 01:25:11 +00:00
|
|
|
sha256 = "179x8lwrw2h7cxnkq7izny6qcb4nhjnd8zx893i77zfhzsa6kx81";
|
2014-03-29 22:03:35 +00:00
|
|
|
};
|
|
|
|
|
2020-06-14 01:25:11 +00:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
|
|
|
appdirs cython dbus-python numpy six wxPython_4_0 psutil pyglet pyopengl pyserial
|
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
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-03-29 22:03:35 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|