2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2022-05-18 14:49:53 +00:00
|
|
|
, buildPythonPackage
|
2020-07-18 16:06:22 +00:00
|
|
|
, fetchPypi
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2022-05-18 14:49:53 +00:00
|
|
|
, defusedxml
|
2020-07-18 16:06:22 +00:00
|
|
|
, lxml
|
|
|
|
, relatorio
|
|
|
|
, genshi
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-07-18 16:06:22 +00:00
|
|
|
, polib
|
|
|
|
, python-sql
|
|
|
|
, werkzeug
|
|
|
|
, wrapt
|
|
|
|
, passlib
|
|
|
|
, pydot
|
|
|
|
, python-Levenshtein
|
|
|
|
, html2text
|
2022-05-18 14:49:53 +00:00
|
|
|
, weasyprint
|
|
|
|
, gevent
|
|
|
|
, pillow
|
|
|
|
, withPostgresql ? true, psycopg2
|
|
|
|
, python
|
2020-07-18 16:06:22 +00:00
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "trytond";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "6.4.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2022-05-18 14:49:53 +00:00
|
|
|
sha256 = "3c04d75c2a779b88b8c7ab6dd252cf4fc51f9546bf42760d10dbd1a17f61b288";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-05-18 14:49:53 +00:00
|
|
|
defusedxml
|
2020-04-24 23:36:52 +00:00
|
|
|
lxml
|
2020-07-18 16:06:22 +00:00
|
|
|
relatorio
|
|
|
|
genshi
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
polib
|
|
|
|
python-sql
|
|
|
|
werkzeug
|
|
|
|
wrapt
|
2020-07-18 16:06:22 +00:00
|
|
|
passlib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# extra dependencies
|
|
|
|
pydot
|
|
|
|
python-Levenshtein
|
|
|
|
html2text
|
2022-05-18 14:49:53 +00:00
|
|
|
weasyprint
|
|
|
|
gevent
|
|
|
|
pillow
|
|
|
|
] ++ relatorio.extras-require.fodt
|
|
|
|
++ passlib.extras-require.bcrypt
|
|
|
|
++ passlib.extras-require.argon2
|
|
|
|
++ lib.optional withPostgresql psycopg2;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
2020-07-18 16:06:22 +00:00
|
|
|
|
|
|
|
export HOME=$(mktemp -d)
|
2022-05-18 14:49:53 +00:00
|
|
|
export TRYTOND_DATABASE_URI="sqlite://"
|
|
|
|
export DB_NAME=":memory:";
|
|
|
|
${python.interpreter} -m unittest discover -s trytond.tests
|
|
|
|
|
|
|
|
runHook postCheck
|
2020-07-18 16:06:22 +00:00
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2022-05-18 14:49:53 +00:00
|
|
|
changelog = "https://hg.tryton.org/trytond/file/${version}/CHANGELOG";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ udono johbo ];
|
|
|
|
};
|
|
|
|
}
|