1{ lib
2, buildPythonApplication
3, fetchPypi
4, pythonOlder
5, mock
6, lxml
7, relatorio
8, genshi
9, dateutil
10, polib
11, python-sql
12, werkzeug
13, wrapt
14, passlib
15, bcrypt
16, pydot
17, python-Levenshtein
18, simplejson
19, html2text
20, psycopg2
21, withPostgresql ? true
22}:
23
24buildPythonApplication rec {
25 pname = "trytond";
26 version = "5.8.5";
27 disabled = pythonOlder "3.5";
28
29 src = fetchPypi {
30 inherit pname version;
31 sha256 = "62753cebdae2d9e2d6bf8a5dde840ef77540414c4df76c8ed202c0c0d0bedb02";
32 };
33
34 # Tells the tests which database to use
35 DB_NAME = ":memory:";
36
37 buildInputs = [
38 mock
39 ];
40 propagatedBuildInputs = [
41 lxml
42 relatorio
43 genshi
44 dateutil
45 polib
46 python-sql
47 werkzeug
48 wrapt
49 passlib
50
51 # extra dependencies
52 bcrypt
53 pydot
54 python-Levenshtein
55 simplejson
56 html2text
57 ] ++ lib.optional withPostgresql psycopg2;
58
59 # If unset, trytond will try to mkdir /homeless-shelter
60 preCheck = ''
61 export HOME=$(mktemp -d)
62 '';
63
64 meta = with lib; {
65 description = "The server of the Tryton application platform";
66 longDescription = ''
67 The server for Tryton, a three-tier high-level general purpose
68 application platform under the license GPL-3 written in Python and using
69 PostgreSQL as database engine.
70
71 It is the core base of a complete business solution providing
72 modularity, scalability and security.
73 '';
74 homepage = "http://www.tryton.org/";
75 license = licenses.gpl3Plus;
76 maintainers = with maintainers; [ udono johbo ];
77 };
78}