tryton: 4.8.5 -> 5.4.0

Uses python3, no more pygtk.
This commit is contained in:
worldofpeace 2019-11-27 13:03:23 -05:00
parent 7b206210f2
commit 0ea42c7af6

View File

@ -1,5 +1,5 @@
{ stdenv { stdenv
, python2Packages , python3Packages
, pkgconfig , pkgconfig
, librsvg , librsvg
, gobject-introspection , gobject-introspection
@ -7,40 +7,59 @@
, gtk3 , gtk3
, gtkspell3 , gtkspell3
, gnome3 , gnome3
, glib
, goocanvas2 , goocanvas2
, gdk-pixbuf
, pango
, fontconfig
, freetype
, wrapGAppsHook
}: }:
with stdenv.lib; with stdenv.lib;
python2Packages.buildPythonApplication rec { python3Packages.buildPythonApplication rec {
pname = "tryton"; pname = "tryton";
version = "4.8.5"; version = "5.4.0";
src = python2Packages.fetchPypi {
disabled = !python3Packages.isPy3k;
src = python3Packages.fetchPypi {
inherit pname version; inherit pname version;
sha256 = "43759d22b061a7a392a534d19a045fafd442ce98a0e390ee830127367dcaf4b4"; sha256 = "0wbq8y8z0n6c5b3h5ynlawn3z79a3hkb1fkmblz4pwnj0jfnbswd";
}; };
nativeBuildInputs = [ pkgconfig gobject-introspection ];
propagatedBuildInputs = with python2Packages; [ nativeBuildInputs = [
chardet pkgconfig
gobject-introspection
wrapGAppsHook
];
propagatedBuildInputs = with python3Packages; [
dateutil dateutil
pygtk
librsvg
pygobject3 pygobject3
goocalendar goocalendar
cdecimal pycairo
]; ];
buildInputs = [ buildInputs = [
atk atk
gtk3 gdk-pixbuf
glib
gnome3.adwaita-icon-theme gnome3.adwaita-icon-theme
gtkspell3
goocanvas2 goocanvas2
fontconfig
freetype
gtk3
gtkspell3
librsvg
pango
]; ];
makeWrapperArgs = [
''--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"'' strictDeps = false;
''--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"''
''--suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"'' doCheck = false;
];
meta = { meta = {
description = "The client of the Tryton application platform"; description = "The client of the Tryton application platform";
longDescription = '' longDescription = ''