2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
2024-06-20 14:57:18 +00:00
|
|
|
stdenv,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
2024-07-27 06:49:29 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
defusedxml,
|
|
|
|
lxml,
|
|
|
|
relatorio,
|
|
|
|
genshi,
|
|
|
|
python-dateutil,
|
|
|
|
polib,
|
|
|
|
python-sql,
|
|
|
|
werkzeug,
|
|
|
|
passlib,
|
|
|
|
pydot,
|
|
|
|
levenshtein,
|
|
|
|
html2text,
|
|
|
|
weasyprint,
|
|
|
|
gevent,
|
|
|
|
pillow,
|
|
|
|
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-07-27 06:49:29 +00:00
|
|
|
version = "7.2.6";
|
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
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-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-Vz1bYIwhvH8SHZnmv9ZuaoOnNe378gtIWK2UQDBQxas=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-07-27 06:49:29 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies =
|
2024-06-05 15:53:02 +00:00
|
|
|
[
|
|
|
|
defusedxml
|
|
|
|
lxml
|
|
|
|
relatorio
|
|
|
|
genshi
|
|
|
|
python-dateutil
|
|
|
|
polib
|
|
|
|
python-sql
|
|
|
|
werkzeug
|
|
|
|
passlib
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
# extra dependencies
|
|
|
|
pydot
|
|
|
|
levenshtein
|
|
|
|
html2text
|
|
|
|
weasyprint
|
|
|
|
gevent
|
|
|
|
pillow
|
|
|
|
]
|
|
|
|
++ relatorio.optional-dependencies.fodt
|
|
|
|
++ 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
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
unittestFlagsArray = [
|
|
|
|
"-s"
|
|
|
|
"trytond.tests"
|
|
|
|
];
|
2022-09-09 14:08:57 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Server of the Tryton application platform";
|
2020-04-24 23:36:52 +00:00
|
|
|
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/";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${version}/trytond/CHANGELOG?ref_type=tags";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2024-06-20 14:57:18 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
udono
|
|
|
|
johbo
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|