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
|
2023-01-20 10:41:00 +00:00
|
|
|
, levenshtein
|
2020-07-18 16:06:22 +00:00
|
|
|
, html2text
|
2022-05-18 14:49:53 +00:00
|
|
|
, weasyprint
|
|
|
|
, gevent
|
|
|
|
, pillow
|
2022-09-09 14:08:57 +00:00
|
|
|
, withPostgresql ? true
|
|
|
|
, psycopg2
|
|
|
|
, unittestCheckHook
|
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";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "7.0.2";
|
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;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-/Xb6YOQ8nV+bXTdt/iAgYkBkmV6fRVFjR+86SfKU+aw=";
|
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
|
2023-01-20 10:41:00 +00:00
|
|
|
levenshtein
|
2020-04-24 23:36:52 +00:00
|
|
|
html2text
|
2022-05-18 14:49:53 +00:00
|
|
|
weasyprint
|
|
|
|
gevent
|
|
|
|
pillow
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ relatorio.optional-dependencies.fodt
|
2022-09-09 14:08:57 +00:00
|
|
|
++ passlib.optional-dependencies.bcrypt
|
|
|
|
++ passlib.optional-dependencies.argon2
|
|
|
|
++ lib.optional withPostgresql psycopg2;
|
2022-05-18 14:49:53 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ unittestCheckHook ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
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:";
|
2020-07-18 16:06:22 +00:00
|
|
|
'';
|
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
unittestFlagsArray = [ "-s" "trytond.tests" ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|