2017-02-18 16:27:25 +01:00
|
|
|
{ stdenv, fetchurl, python2Packages
|
|
|
|
, withPostgresql ? true }:
|
|
|
|
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
python2Packages.buildPythonApplication rec {
|
|
|
|
name = "trytond-${version}";
|
2018-02-28 02:53:03 +01:00
|
|
|
version = "4.6.2";
|
2017-02-18 16:27:25 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/t/trytond/${name}.tar.gz";
|
2018-02-28 02:53:03 +01:00
|
|
|
sha256 = "0asc3pd37h8ky8j66iqxr0fv0k6mpjcwxwm0xgm5hrdi32l5cdda";
|
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
|
|
|
|
|
|
|
|
# extra dependencies
|
|
|
|
bcrypt
|
|
|
|
pydot
|
|
|
|
python-Levenshtein
|
|
|
|
simplejson
|
|
|
|
] ++ 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;
|
|
|
|
maintainers = [ maintainers.johbo ];
|
|
|
|
};
|
|
|
|
}
|