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) |
33dc54b0 | 27 | #:use-module (gnu packages time) |
48174fb9 AP |
28 | #:use-module (guix packages) |
29 | #:use-module (guix download) | |
30 | #:use-module (guix build-system python)) | |
31 | ||
32 | (define-public trytond | |
33 | (package | |
34 | (name "trytond") | |
7e99221d | 35 | (version "4.6.2") |
48174fb9 AP |
36 | (source |
37 | (origin | |
38 | (method url-fetch) | |
7e99221d | 39 | (uri (pypi-uri "trytond" version)) |
48174fb9 AP |
40 | (sha256 |
41 | (base32 | |
7e99221d | 42 | "0asc3pd37h8ky8j66iqxr0fv0k6mpjcwxwm0xgm5hrdi32l5cdda")))) |
48174fb9 AP |
43 | (build-system python-build-system) |
44 | (inputs | |
45 | `(("python-dateutil" ,python-dateutil) | |
46 | ("python-genshi" ,python-genshi) | |
47 | ("python-polib" ,python-polib) | |
7e99221d | 48 | ("python-magic" ,python-magic) |
48174fb9 AP |
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") | |
974a4d5d | 76 | (version "4.6.2") |
16855482 AP |
77 | (source |
78 | (origin | |
79 | (method url-fetch) | |
974a4d5d | 80 | (uri (pypi-uri "tryton" version)) |
16855482 AP |
81 | (sha256 |
82 | (base32 | |
974a4d5d | 83 | "0bamr040np02gfjk8c734rw3mbgg75irfgpdcl2npgkdzyw1ksf9")))) |
16855482 AP |
84 | (build-system python-build-system) |
85 | (inputs | |
86 | `(("python2-chardet" ,python2-chardet) | |
87 | ("python2-dateutil" ,python2-dateutil) | |
88 | ("python2-pygtk" ,python2-pygtk))) | |
89 | (arguments | |
90 | `(#:python ,python-2)) | |
91 | (home-page "https://www.tryton.org/") | |
92 | (synopsis "Client component of Tryton") | |
93 | (description "This package is the client component of Tryton.") | |
94 | (license license:gpl3+))) | |
bf3563d5 AP |
95 | |
96 | (define-public python-proteus | |
97 | (package | |
98 | (name "python-proteus") | |
99 | (version "4.6.0") | |
100 | (source | |
101 | (origin | |
102 | (method url-fetch) | |
103 | (uri (pypi-uri "proteus" version)) | |
104 | (sha256 | |
105 | (base32 | |
106 | "0flkf1vxbhz51b7bq31dn7q9mlkli3pmpbzfhsxfqpf6laghbkqg")))) | |
107 | (build-system python-build-system) | |
108 | (propagated-inputs | |
109 | `(("python-dateutil" ,python-dateutil))) | |
110 | (home-page "http://www.tryton.org/") | |
111 | (synopsis | |
112 | "Library to access a Tryton server as a client") | |
113 | (description | |
114 | "This package provides a library to access Tryton server as a client.") | |
115 | (license license:lgpl3+))) |