Merge pull request #40606 from udono/fix/tryton-update

Fix/tryton update
This commit is contained in:
Matthew Justin Bauer 2018-05-18 21:50:12 -05:00 committed by GitHub
commit 93a5152c82
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 117 additions and 13 deletions

View File

@ -3895,6 +3895,11 @@
github = "typetetris";
name = "Eric Wolf";
};
udono = {
email = "udono@virtual-things.biz";
github = "udono";
name = "Udo Spallek";
};
unode = {
email = "alves.rjc@gmail.com";
github = "unode";

View File

@ -1,22 +1,45 @@
{ stdenv, fetchurl, python2Packages, librsvg }:
{ stdenv
, python2Packages
, pkgconfig
, librsvg
, gobjectIntrospection
, atk
, gtk3
, gtkspell3
, gnome3
, goocanvas2
}:
with stdenv.lib;
python2Packages.buildPythonApplication rec {
name = "tryton-${version}";
version = "4.6.2";
src = fetchurl {
url = "mirror://pypi/t/tryton/${name}.tar.gz";
sha256 = "0bamr040np02gfjk8c734rw3mbgg75irfgpdcl2npgkdzyw1ksf9";
pname = "tryton";
version = "4.8.0";
src = python2Packages.fetchPypi {
inherit pname version;
sha256 = "1ywgna4hhmji8pfrwhdfj1ns49vs9nwppqb7iy7jr27wrxk4bm6b";
};
nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
propagatedBuildInputs = with python2Packages; [
chardet
dateutil
pygtk
librsvg
pygobject3
goocalendar
cdecimal
];
buildInputs = [
atk
gtk3
gnome3.defaultIconTheme
gtkspell3
goocanvas2
];
makeWrapperArgs = [
''--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"''
''--set GI_TYPELIB_PATH "$GI_TYPELIB_PATH"''
''--suffix XDG_DATA_DIRS : "$XDG_ICON_DIRS:$GSETTINGS_SCHEMAS_PATH"''
];
meta = {
description = "The client of the Tryton application platform";
@ -30,6 +53,6 @@ python2Packages.buildPythonApplication rec {
'';
homepage = http://www.tryton.org/;
license = licenses.gpl3Plus;
maintainers = [ maintainers.johbo ];
maintainers = with maintainers; [ johbo udono ];
};
}

View File

@ -4,11 +4,11 @@
with stdenv.lib;
python2Packages.buildPythonApplication rec {
name = "trytond-${version}";
version = "4.6.2";
src = fetchurl {
url = "mirror://pypi/t/trytond/${name}.tar.gz";
sha256 = "0asc3pd37h8ky8j66iqxr0fv0k6mpjcwxwm0xgm5hrdi32l5cdda";
pname = "trytond";
version = "4.8.0";
src = python2Packages.fetchPypi {
inherit pname version;
sha256 = "114c0ea15b8395117bf8c669b7da8af4961001297fbd034c780a42a40e079e3a";
};
# Tells the tests which database to use
@ -25,12 +25,15 @@ python2Packages.buildPythonApplication rec {
relatorio
werkzeug
wrapt
ipaddress
# extra dependencies
bcrypt
pydot
python-Levenshtein
simplejson
cdecimal
html2text
] ++ stdenv.lib.optional withPostgresql psycopg2);
meta = {
description = "The server of the Tryton application platform";
@ -44,6 +47,6 @@ python2Packages.buildPythonApplication rec {
'';
homepage = http://www.tryton.org/;
license = licenses.gpl3Plus;
maintainers = [ maintainers.johbo ];
maintainers = with maintainers; [ udono johbo ];
};
}

View File

@ -0,0 +1,25 @@
{ stdenv, fetchurl, wget, buildPythonPackage, isPy3k }:
with stdenv.lib;
buildPythonPackage rec {
pname = "cdecimal";
version = "2.3";
disabled = isPy3k;
src = fetchurl {
url="http://www.bytereef.org/software/mpdecimal/releases/${pname}-${version}.tar.gz";
sha256 = "d737cbe43ed1f6ad9874fb86c3db1e9bbe20c0c750868fde5be3f379ade83d8b";
};
# Upstream tests are not included s. a. http://www.bytereef.org/mpdecimal/testing.html
doCheck = false;
meta = with stdenv.lib; {
description = "Fast drop-in replacement for decimal.py";
homepage = http://www.bytereef.org/mpdecimal/;
license = licenses.bsd2;
maintainers = [ maintainers.udono ];
};
}

View File

@ -0,0 +1,44 @@
{ stdenv
, fetchPypi
, buildPythonPackage
, pkgconfig
, gtk3
, gobjectIntrospection
, pygtk
, pygobject3
, goocanvas2
, isPy3k
}:
with stdenv.lib;
buildPythonPackage rec {
pname = "GooCalendar";
version = "0.3";
disabled = isPy3k;
src = fetchPypi {
inherit pname version;
sha256 = "1p7qbcv06xipg48sgpdlqf72ajl3n1qlypcc0giyi1a72zpyf823";
};
nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
propagatedBuildInputs = [
pygtk
pygobject3
];
buildInputs = [
gtk3
goocanvas2
];
# No upstream tests available
doCheck = false;
meta = with stdenv.lib; {
description = "A calendar widget for GTK using PyGoocanvas.";
homepage = https://goocalendar.tryton.org/;
license = licenses.gpl2;
maintainers = [ maintainers.udono ];
};
}

View File

@ -223,6 +223,8 @@ in {
bugseverywhere = callPackage ../applications/version-management/bugseverywhere {};
cdecimal = callPackage ../development/python-modules/cdecimal { };
dendropy = callPackage ../development/python-modules/dendropy { };
dbf = callPackage ../development/python-modules/dbf { };
@ -253,6 +255,8 @@ in {
globus-sdk = callPackage ../development/python-modules/globus-sdk { };
goocalendar = callPackage ../development/python-modules/goocalendar { };
gssapi = callPackage ../development/python-modules/gssapi { };
h5py = callPackage ../development/python-modules/h5py {