nixpkgs/pkgs/applications/misc/printrun/default.nix

38 lines
935 B
Nix
Raw Normal View History

2015-10-27 11:23:12 +01:00
{ stdenv, python27Packages, fetchFromGitHub }:
2014-03-29 23:03:35 +01:00
python27Packages.buildPythonApplication rec {
2015-10-27 11:23:12 +01:00
name = "printrun-20150310";
src = fetchFromGitHub {
owner = "kliment";
repo = "Printrun";
rev = name;
sha256 = "09ijv8h4k5h15swg64s7igamvynawz7gdi7hiymzrzywdvr0zwsa";
2014-03-29 23:03:35 +01:00
};
2015-10-27 11:23:12 +01:00
propagatedBuildInputs = with python27Packages; [
wxPython30 pyserial dbus-python psutil numpy pyopengl pyglet cython
2015-10-27 11:23:12 +01:00
];
2014-03-29 23:03:35 +01:00
doCheck = false;
setupPyBuildFlags = ["-i"];
2014-03-29 23:03:35 +01: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";
homepage = https://github.com/kliment/Printrun;
license = licenses.gpl3;
platforms = platforms.linux;
};
}