1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 17:41:12 +00:00
nixpkgs/pkgs/applications/misc/printrun/default.nix
Frederik Rietdijk 5a501bd828 Remove top-level dbus_python and pythonDBus.
See #11567.

Furthermore, it renames pythonPackages.dbus to pythonPackages.dbus-
python as that's the name upstream uses.

There is a small rebuild but I couldn't figure out the actual cause.
2016-08-16 22:52:37 +02:00

38 lines
935 B
Nix

{ stdenv, python27Packages, fetchFromGitHub }:
python27Packages.buildPythonApplication rec {
name = "printrun-20150310";
src = fetchFromGitHub {
owner = "kliment";
repo = "Printrun";
rev = name;
sha256 = "09ijv8h4k5h15swg64s7igamvynawz7gdi7hiymzrzywdvr0zwsa";
};
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;
};
}