23 withPostgresql ? true,
28 buildPythonPackage rec {
33 disabled = pythonOlder "3.7";
36 inherit pname version;
37 hash = "sha256-4ThDDsAvy/9Md1bbOJatIZYzrhZQsMP4hbh/9MBUxgA=";
40 build-system = [ setuptools ];
62 ++ relatorio.optional-dependencies.fodt
63 ++ passlib.optional-dependencies.bcrypt
64 ++ passlib.optional-dependencies.argon2
65 ++ lib.optional withPostgresql psycopg2;
67 nativeCheckInputs = [ unittestCheckHook ];
70 export HOME=$(mktemp -d)
71 export TRYTOND_DATABASE_URI="sqlite://"
72 export DB_NAME=":memory:";
75 unittestFlagsArray = [
81 description = "Server of the Tryton application platform";
83 The server for Tryton, a three-tier high-level general purpose
84 application platform under the license GPL-3 written in Python and using
85 PostgreSQL as database engine.
87 It is the core base of a complete business solution providing
88 modularity, scalability and security.
90 homepage = "http://www.tryton.org/";
91 changelog = "https://foss.heptapod.net/tryton/tryton/-/blob/trytond-${version}/trytond/CHANGELOG?ref_type=tags";
92 license = licenses.gpl3Plus;
93 broken = stdenv.hostPlatform.isDarwin;
94 maintainers = with maintainers; [