at 22.05-pre 1.6 kB view raw
1{ lib 2, buildPythonApplication 3, fetchPypi 4, pythonOlder 5, mock 6, lxml 7, relatorio 8, genshi 9, python-dateutil 10, polib 11, python-sql 12, werkzeug 13, wrapt 14, passlib 15, pillow 16, bcrypt 17, pydot 18, python-Levenshtein 19, simplejson 20, html2text 21, psycopg2 22, withPostgresql ? true 23}: 24 25buildPythonApplication rec { 26 pname = "trytond"; 27 version = "6.2.0"; 28 format = "setuptools"; 29 30 disabled = pythonOlder "3.6"; 31 32 src = fetchPypi { 33 inherit pname version; 34 sha256 = "sha256-U73dzLTUJnOw24/ELQzjnxJ0PvjV+zE/PNuQHXbEukw="; 35 }; 36 37 # Tells the tests which database to use 38 DB_NAME = ":memory:"; 39 40 buildInputs = [ 41 mock 42 ]; 43 44 propagatedBuildInputs = [ 45 lxml 46 relatorio 47 genshi 48 python-dateutil 49 polib 50 python-sql 51 werkzeug 52 wrapt 53 pillow 54 passlib 55 56 # extra dependencies 57 bcrypt 58 pydot 59 python-Levenshtein 60 simplejson 61 html2text 62 ] ++ lib.optional withPostgresql psycopg2; 63 64 # If unset, trytond will try to mkdir /homeless-shelter 65 preCheck = '' 66 export HOME=$(mktemp -d) 67 ''; 68 69 meta = with lib; { 70 description = "The server of the Tryton application platform"; 71 longDescription = '' 72 The server for Tryton, a three-tier high-level general purpose 73 application platform under the license GPL-3 written in Python and using 74 PostgreSQL as database engine. 75 76 It is the core base of a complete business solution providing 77 modularity, scalability and security. 78 ''; 79 homepage = "http://www.tryton.org/"; 80 license = licenses.gpl3Plus; 81 maintainers = with maintainers; [ udono johbo ]; 82 }; 83}