Commit | Line | Data |
---|---|---|
48174fb9 AP |
1 | ;;; GNU Guix --- Functional package management for GNU |
2 | ;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com> | |
3 | ;;; | |
4 | ;;; This file is part of GNU Guix. | |
5 | ;;; | |
6 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
7 | ;;; under the terms of the GNU General Public License as published by | |
8 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
9 | ;;; your option) any later version. | |
10 | ;;; | |
11 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
12 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
13 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
14 | ;;; GNU General Public License for more details. | |
15 | ;;; | |
16 | ;;; You should have received a copy of the GNU General Public License | |
17 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
18 | ||
19 | (define-module (gnu packages tryton) | |
20 | #:use-module ((guix licenses) #:prefix license:) | |
21 | #:use-module (gnu packages) | |
ac257f12 | 22 | #:use-module (gnu packages check) |
a8714bf6 | 23 | #:use-module (gnu packages databases) |
16855482 | 24 | #:use-module (gnu packages gtk) |
48174fb9 | 25 | #:use-module (gnu packages python) |
1b2f753d | 26 | #:use-module (gnu packages python-web) |
48174fb9 AP |
27 | #:use-module (guix packages) |
28 | #:use-module (guix download) | |
29 | #:use-module (guix build-system python)) | |
30 | ||
31 | (define-public trytond | |
32 | (package | |
33 | (name "trytond") | |
34 | (version "4.4.1") | |
35 | (source | |
36 | (origin | |
37 | (method url-fetch) | |
38 | (uri (string-append | |
39 | "https://downloads.tryton.org/4.4/trytond-" | |
40 | version ".tar.gz")) | |
41 | (sha256 | |
42 | (base32 | |
43 | "15gm34qwj5fpnkqvrxzndl8653zbczhsa76dm1gi4cqj1r29bbpr")))) | |
44 | (build-system python-build-system) | |
45 | (inputs | |
46 | `(("python-dateutil" ,python-dateutil) | |
47 | ("python-genshi" ,python-genshi) | |
48 | ("python-polib" ,python-polib) | |
49 | ;; there's no python-mysql in Guix right now | |
50 | ;; so python-psycopg2 (postgresql) only for now | |
51 | ("python-psycopg2" ,python-psycopg2) | |
52 | ("python-relatorio" ,python-relatorio) | |
53 | ("python-lxml" ,python-lxml) | |
54 | ("python-sql" ,python-sql) | |
55 | ("python-werkzeug" ,python-werkzeug) | |
56 | ("python-wrapt" ,python-wrapt))) | |
57 | (native-inputs | |
58 | `(("python-mock" ,python-mock))) | |
59 | (arguments | |
60 | `(#:phases | |
61 | (modify-phases %standard-phases | |
62 | (add-before 'check 'preparations | |
63 | (lambda _ | |
64 | (setenv "DB_NAME" ":memory:")))))) | |
65 | (home-page "https://www.tryton.org/") | |
66 | (synopsis "Server component of Tryton") | |
67 | (description "Tryton is a three-tier high-level general purpose | |
68 | application platform using PostgreSQL as its main database engine. It is the | |
69 | core base of a complete business solution providing modularity, scalability | |
70 | and security.") | |
71 | (license license:gpl3+))) | |
16855482 AP |
72 | |
73 | (define-public tryton | |
74 | (package | |
75 | (name "tryton") | |
76 | (version "4.4.0") | |
77 | (source | |
78 | (origin | |
79 | (method url-fetch) | |
80 | (uri (string-append | |
81 | "https://downloads.tryton.org/4.4/tryton-" | |
82 | version ".tar.gz")) | |
83 | (sha256 | |
84 | (base32 | |
85 | "1lklcz5fs6rkrd7z2m2f5gz4fdwzkgnhg2hyvzp20kdsvi33bq2j")))) | |
86 | (build-system python-build-system) | |
87 | (inputs | |
88 | `(("python2-chardet" ,python2-chardet) | |
89 | ("python2-dateutil" ,python2-dateutil) | |
90 | ("python2-pygtk" ,python2-pygtk))) | |
91 | (arguments | |
92 | `(#:python ,python-2)) | |
93 | (home-page "https://www.tryton.org/") | |
94 | (synopsis "Client component of Tryton") | |
95 | (description "This package is the client component of Tryton.") | |
96 | (license license:gpl3+))) |