trytond: convert to python package

This commit is contained in:
Enno Lohmeier 2020-06-26 12:24:42 +02:00
parent 218c8509c6
commit 63bcf4f4ec
3 changed files with 25 additions and 6 deletions

View File

@ -1,14 +1,31 @@
{ stdenv
, python3Packages
, buildPythonApplication
, fetchPypi
, mock
, lxml
, relatorio
, genshi
, dateutil
, polib
, python-sql
, werkzeug
, wrapt
, passlib
, bcrypt
, pydot
, python-Levenshtein
, simplejson
, html2text
, psycopg2
, withPostgresql ? true
}:
with stdenv.lib;
python3Packages.buildPythonApplication rec {
buildPythonApplication rec {
pname = "trytond";
version = "5.6.2";
src = python3Packages.fetchPypi {
src = fetchPypi {
inherit pname version;
sha256 = "0mlfl34zmmqrwip39mvhkk0h6dsljqwff2mk1ldahm253d4vzflp";
};
@ -16,10 +33,10 @@ python3Packages.buildPythonApplication rec {
# Tells the tests which database to use
DB_NAME = ":memory:";
buildInputs = with python3Packages; [
buildInputs = [
mock
];
propagatedBuildInputs = with python3Packages; [
propagatedBuildInputs = [
lxml
relatorio
genshi

View File

@ -7193,7 +7193,7 @@ in
tryton = callPackage ../applications/office/tryton { };
trytond = callPackage ../applications/office/trytond { };
trytond = with python3Packages; toPythonApplication trytond;
omapd = callPackage ../tools/security/omapd { };

View File

@ -6056,6 +6056,8 @@ in {
tqdm = callPackage ../development/python-modules/tqdm { };
trytond = callPackage ../development/python-modules/trytond { };
smmap = callPackage ../development/python-modules/smmap { };
smmap2 = throw "smmap2 has been deprecated, use smmap instead."; # added 2020-03-14