nixpkgs/pkgs/applications/office/trytond/default.nix
Udo Spallek e708c8f120 trytond: 4.6 -> 4.8
Major upstream release.
Use extras-depends: cdecimal html2text ipaddress
2018-05-18 17:17:44 +00:00

52 lines
1.3 KiB
Nix

{ stdenv, fetchurl, python2Packages
, withPostgresql ? true }:
with stdenv.lib;
python2Packages.buildPythonApplication rec {
pname = "trytond";
version = "4.8.0";
src = python2Packages.fetchPypi {
inherit pname version;
sha256 = "114c0ea15b8395117bf8c669b7da8af4961001297fbd034c780a42a40e079e3a";
};
# 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
ipaddress
# extra dependencies
bcrypt
pydot
python-Levenshtein
simplejson
cdecimal
html2text
] ++ 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 = with maintainers; [ udono johbo ];
};
}