2018-07-21 02:44:44 +02:00
|
|
|
{ stdenv, python2Packages
|
2017-02-18 16:27:25 +01:00
|
|
|
, withPostgresql ? true }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
2018-05-18 17:03:23 +02:00
|
|
|
pname = "trytond";
|
2018-08-07 09:39:34 +02:00
|
|
|
version = "4.8.3";
|
2018-05-18 17:03:23 +02:00
|
|
|
src = python2Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2018-08-07 09:39:34 +02:00
|
|
|
sha256 = "11d01dc984d9274229b5c80f883679d130a55e14e9124b051274fce9aea4ef77";
|
2017-02-18 16:27:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
# Tells the tests which database to use
|
|
|
|
DB_NAME = ":memory:";
|
|
|
|
|
|
|
|
buildInputs = with python2Packages; [
|
|
|
|
mock
|
|
|
|
];
|
|
|
|
propagatedBuildInputs = with python2Packages; ([
|
|
|
|
dateutil
|
|
|
|
lxml
|
|
|
|
polib
|
|
|
|
python-sql
|
|
|
|
relatorio
|
|
|
|
werkzeug
|
|
|
|
wrapt
|
2018-05-18 17:03:23 +02:00
|
|
|
ipaddress
|
2017-02-18 16:27:25 +01:00
|
|
|
|
|
|
|
# extra dependencies
|
|
|
|
bcrypt
|
|
|
|
pydot
|
|
|
|
python-Levenshtein
|
|
|
|
simplejson
|
2018-05-18 17:03:23 +02:00
|
|
|
cdecimal
|
|
|
|
html2text
|
2017-02-18 16:27:25 +01:00
|
|
|
] ++ stdenv.lib.optional withPostgresql psycopg2);
|
|
|
|
meta = {
|
|
|
|
description = "The server of the Tryton application platform";
|
|
|
|
longDescription = ''
|
|
|
|
The server for Tryton, a three-tier high-level general purpose
|
|
|
|
application platform under the license GPL-3 written in Python and using
|
|
|
|
PostgreSQL as database engine.
|
|
|
|
|
|
|
|
It is the core base of a complete business solution providing
|
|
|
|
modularity, scalability and security.
|
|
|
|
'';
|
|
|
|
homepage = http://www.tryton.org/;
|
|
|
|
license = licenses.gpl3Plus;
|
2018-05-18 17:03:23 +02:00
|
|
|
maintainers = with maintainers; [ udono johbo ];
|
2017-02-18 16:27:25 +01:00
|
|
|
};
|
|
|
|
}
|