terminator: fix build and use buildPythonApplication

This commit is contained in:
Robin Gloster 2016-09-06 13:37:39 +02:00
parent d8ef63fc73
commit 825c0d892a
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882

View File

@ -1,6 +1,7 @@
{ stdenv, fetchurl, pythonPackages, keybinder, vte, gettext, intltool }:
{ stdenv, fetchurl, python2Packages, pango, keybinder, vte, gettext, intltool, file
}:
pythonPackages.buildPythonApplication rec {
python2Packages.buildPythonApplication rec {
name = "terminator-${version}";
version = "0.98";
@ -9,11 +10,19 @@ pythonPackages.buildPythonApplication rec {
sha256 = "1h965z06dsfk38byyhnsrscd9r91qm92ggwgjrh7xminzsgqqv8a";
};
propagatedBuildInputs = with pythonPackages; [ pygtk notify keybinder vte gettext intltool ];
nativeBuildInputs = [ file intltool ];
#setupPyBuildFlags = [ "--without-icon-cache" ];
pythonPath = with python2Packages; [
pygtk pygobject2 vte keybinder notify gettext pango
];
doCheck = false;
postPatch = ''
patchShebangs .
'';
checkPhase = ''
./run_tests
'';
meta = with stdenv.lib; {
description = "Terminal emulator with support for tiling and tabs";
@ -25,7 +34,7 @@ pythonPackages.buildPythonApplication rec {
'';
homepage = http://gnometerminator.blogspot.no/p/introduction.html;
license = licenses.gpl2;
maintainers = [ maintainers.bjornfor ];
maintainers = with maintainers; [ bjornfor globin ];
platforms = platforms.linux;
};
}