gnu: emacs-consult: Fix grammar.
[jackhill/guix/guix.git] / gnu / packages / tryton.scm
CommitLineData
48174fb9
AP
1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2017 Adriano Peluso <catonano@gmail.com>
6de7e59f 3;;; Copyright © 2020 Vinicius Monego <monego@posteo.net>
48174fb9
AP
4;;;
5;;; This file is part of GNU Guix.
6;;;
7;;; GNU Guix is free software; you can redistribute it and/or modify it
8;;; under the terms of the GNU General Public License as published by
9;;; the Free Software Foundation; either version 3 of the License, or (at
10;;; your option) any later version.
11;;;
12;;; GNU Guix is distributed in the hope that it will be useful, but
13;;; WITHOUT ANY WARRANTY; without even the implied warranty of
14;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15;;; GNU General Public License for more details.
16;;;
17;;; You should have received a copy of the GNU General Public License
18;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
19
20(define-module (gnu packages tryton)
21 #:use-module ((guix licenses) #:prefix license:)
22 #:use-module (gnu packages)
ac257f12 23 #:use-module (gnu packages check)
a8714bf6 24 #:use-module (gnu packages databases)
c8b1defe 25 #:use-module (gnu packages finance)
6de7e59f
VM
26 #:use-module (gnu packages glib)
27 #:use-module (gnu packages gnome)
16855482 28 #:use-module (gnu packages gtk)
48174fb9 29 #:use-module (gnu packages python)
d649704e 30 #:use-module (gnu packages python-crypto)
1b2f753d 31 #:use-module (gnu packages python-web)
44d10b1f 32 #:use-module (gnu packages python-xyz)
33dc54b0 33 #:use-module (gnu packages time)
55e1475c 34 #:use-module (gnu packages xml)
48174fb9
AP
35 #:use-module (guix packages)
36 #:use-module (guix download)
106dd72b 37 #:use-module (guix utils)
48174fb9
AP
38 #:use-module (guix build-system python))
39
0ad07005 40(define-public trytond
48174fb9 41 (package
0ad07005 42 (name "trytond")
823cca8b 43 (version "5.8.2")
48174fb9
AP
44 (source
45 (origin
46 (method url-fetch)
7e99221d 47 (uri (pypi-uri "trytond" version))
48174fb9 48 (sha256
823cca8b 49 (base32 "1h1x0cmmmxvjclbglvvxkv634jw6av5ilymbix1lln5lq0gd39yy"))))
48174fb9
AP
50 (build-system python-build-system)
51 (inputs
52 `(("python-dateutil" ,python-dateutil)
53 ("python-genshi" ,python-genshi)
d649704e 54 ("python-lxml" ,python-lxml)
7e99221d 55 ("python-magic" ,python-magic)
d649704e
VM
56 ("python-passlib" ,python-passlib)
57 ("python-polib" ,python-polib)
48174fb9
AP
58 ("python-psycopg2" ,python-psycopg2)
59 ("python-relatorio" ,python-relatorio)
48174fb9
AP
60 ("python-sql" ,python-sql)
61 ("python-werkzeug" ,python-werkzeug)
62 ("python-wrapt" ,python-wrapt)))
63 (native-inputs
64 `(("python-mock" ,python-mock)))
65 (arguments
66 `(#:phases
67 (modify-phases %standard-phases
68 (add-before 'check 'preparations
69 (lambda _
fa5255fd 70 (setenv "DB_NAME" ":memory:")
d649704e 71 (setenv "HOME" "/tmp")
fa5255fd 72 #t)))))
48174fb9 73 (home-page "https://www.tryton.org/")
0ad07005 74 (synopsis "Tryton Server")
48174fb9
AP
75 (description "Tryton is a three-tier high-level general purpose
76application platform using PostgreSQL as its main database engine. It is the
77core base of a complete business solution providing modularity, scalability
78and security.")
79 (license license:gpl3+)))
16855482 80
0ad07005
HG
81(define-public python-trytond
82 (deprecated-package "python-trytond" trytond))
83
16855482
AP
84(define-public tryton
85 (package
86 (name "tryton")
823cca8b 87 (version "5.8.2")
16855482
AP
88 (source
89 (origin
90 (method url-fetch)
974a4d5d 91 (uri (pypi-uri "tryton" version))
16855482 92 (sha256
823cca8b 93 (base32 "0kr5ngmmldgb9a9d5ylkmppy5p8vlf9d8iwv9lnci2fyxg2705wh"))))
16855482 94 (build-system python-build-system)
16855482 95 (arguments
6de7e59f
VM
96 `(#:phases
97 (modify-phases %standard-phases
98 (add-before 'check 'change-home
99 (lambda _
100 ;; Change from /homeless-shelter to /tmp for write permission.
101 (setenv "HOME" "/tmp")))
102 (add-after 'install 'wrap-gi-python
103 (lambda* (#:key inputs outputs #:allow-other-keys)
104 (let ((out (assoc-ref outputs "out"))
105 (gi-typelib-path (getenv "GI_TYPELIB_PATH")))
106 (wrap-program (string-append out "/bin/tryton")
107 `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path))))
108 #t)))))
109 (native-inputs
110 `(("glib-compile-schemas" ,glib "bin")
111 ("gobject-introspection" ,gobject-introspection)))
112 (inputs
113 `(("gdk-pixbuf" ,gdk-pixbuf+svg)
114 ("gsettings-desktop-schemas" ,gsettings-desktop-schemas)
115 ("gtk+" ,gtk+)
116 ("python-dateutil" ,python-dateutil)
117 ("python-pycairo" ,python-pycairo)
118 ("python-pygobject" ,python-pygobject)))
16855482 119 (home-page "https://www.tryton.org/")
71094100 120 (synopsis "Tryton Client")
6de7e59f 121 (description
71094100 122 "This package provides the Tryton GTK client.")
16855482 123 (license license:gpl3+)))
bf3563d5 124
e4217023 125(define-public python-proteus
0a92ebde 126 (package
e4217023 127 (name "python-proteus")
823cca8b 128 (version "5.8.1")
106dd72b
VM
129 (source
130 (origin
131 (method url-fetch)
e4217023 132 (uri (pypi-uri "proteus" version))
106dd72b 133 (sha256
823cca8b 134 (base32 "03z5ssvjcvxv1p10y7c1y0jah0k3yyc9hlyi7xax98sfqyk13bnw"))))
e4217023
HG
135 (build-system python-build-system)
136 ;; Tests require python-trytond-party which requires python-proteus.
137 (arguments
138 `(#:tests? #f))
139 (propagated-inputs
140 `(("python-dateutil" ,python-dateutil)))
141 (home-page "http://www.tryton.org/")
142 (synopsis "Library to access a Tryton server as a client")
143 (description
144 "This package provides a library to access Tryton server as a client.")
145 (license license:lgpl3+)))
146
147;;;
148;;; Tryton modules - please sort alphabetically
149;;;
150
151(define-public python-trytond-account
152 (package
153 (name "python-trytond-account")
823cca8b 154 (version "5.8.1")
e4217023
HG
155 (source
156 (origin
157 (method url-fetch)
158 (uri (pypi-uri "trytond_account" version))
159 (sha256
823cca8b 160 (base32 "16ny67vcnxk9ngcxd56cfixm441vs9jxv3apmb16xsi47yk2xd7w"))))
106dd72b
VM
161 (build-system python-build-system)
162 (arguments
163 `(#:phases
164 (modify-phases %standard-phases
165 (replace 'check
166 (let ((runtest
167 (string-append
0ad07005 168 (assoc-ref %build-inputs "trytond")
106dd72b
VM
169 "/lib/python"
170 ,(version-major+minor (package-version python))
171 "/site-packages/trytond/tests/run-tests.py")))
172 (lambda* (#:key inputs outputs #:allow-other-keys)
173 (add-installed-pythonpath inputs outputs)
e4217023 174 (invoke "python" runtest "-m" "account")))))))
106dd72b 175 (native-inputs
08ec571c 176 `(("python-genshi" ,python-genshi)
106dd72b
VM
177 ("python-lxml" ,python-lxml)
178 ("python-magic" ,python-magic)
179 ("python-passlib" ,python-passlib)
180 ("python-polib" ,python-polib)
181 ("python-proteus" ,python-proteus)
182 ("python-relatorio" ,python-relatorio)
106dd72b
VM
183 ("python-werkzeug" ,python-werkzeug)
184 ("python-wrapt" ,python-wrapt)))
185 (propagated-inputs
e4217023
HG
186 `(("python-dateutil" ,python-dateutil)
187 ("python-simpleeval" ,python-simpleeval)
188 ("python-sql" ,python-sql)
189 ("python-trytond-company"
190 ,python-trytond-company)
191 ("python-trytond-currency"
192 ,python-trytond-currency)
193 ("python-trytond-party" ,python-trytond-party)
0ad07005 194 ("trytond" ,trytond)))
e4217023
HG
195 (home-page "https://www.tryton.org/")
196 (synopsis "Tryton module for accounting")
106dd72b 197 (description
e4217023
HG
198 "This package provides a Tryton module that defines the fundamentals for
199most of accounting needs.")
106dd72b 200 (license license:gpl3+)))
0a92ebde 201
e4217023 202(define-public python-trytond-account-invoice
c8b1defe 203 (package
e4217023 204 (name "python-trytond-account-invoice")
823cca8b 205 (version "5.8.1")
c8b1defe
AP
206 (source
207 (origin
208 (method url-fetch)
e4217023 209 (uri (pypi-uri "trytond_account_invoice" version))
c8b1defe 210 (sha256
823cca8b 211 (base32 "0drccambg6855p7ai8654c7f9v85jzwicwpxmagyrr09qz6qzgcz"))))
c8b1defe 212 (build-system python-build-system)
c8b1defe 213 (arguments
cb4ebb7f
VM
214 `(#:phases
215 (modify-phases %standard-phases
216 (replace 'check
217 (let ((runtest
218 (string-append
0ad07005 219 (assoc-ref %build-inputs "trytond")
cb4ebb7f
VM
220 "/lib/python"
221 ,(version-major+minor (package-version python))
222 "/site-packages/trytond/tests/run-tests.py")))
223 (lambda* (#:key inputs outputs #:allow-other-keys)
224 (add-installed-pythonpath inputs outputs)
e4217023 225 (invoke "python" runtest "-m" "account_invoice")))))))
cb4ebb7f 226 (native-inputs
08ec571c 227 `(("python-genshi" ,python-genshi)
cb4ebb7f 228 ("python-lxml" ,python-lxml)
c8b1defe 229 ("python-magic" ,python-magic)
cb4ebb7f
VM
230 ("python-passlib" ,python-passlib)
231 ("python-polib" ,python-polib)
232 ("python-proteus" ,python-proteus)
233 ("python-relatorio" ,python-relatorio)
234 ("python-werkzeug" ,python-werkzeug)
235 ("python-wrapt" ,python-wrapt)))
236 (propagated-inputs
e4217023
HG
237 `(("python-dateutil" ,python-dateutil)
238 ("python-sql" ,python-sql)
239 ("python-trytond-account"
240 ,python-trytond-account)
241 ("python-trytond-account-product"
242 ,python-trytond-account-product)
243 ("python-trytond-company"
244 ,python-trytond-company)
245 ("python-trytond-currency"
246 ,python-trytond-currency)
247 ("python-trytond-party" ,python-trytond-party)
248 ("python-trytond-product"
249 ,python-trytond-product)
0ad07005 250 ("trytond" ,trytond)))
cb4ebb7f 251 (home-page "https://www.tryton.org/")
e4217023 252 (synopsis "Tryton module for invoicing")
c8b1defe 253 (description
e4217023
HG
254 "This package provides a Tryton module that adds the invoice, payment
255term.")
c8b1defe
AP
256 (license license:gpl3+)))
257
e4217023 258(define-public python-trytond-account-invoice-stock
23dc957c 259 (package
e4217023 260 (name "python-trytond-account-invoice-stock")
823cca8b 261 (version "5.8.1")
23dc957c
VM
262 (source
263 (origin
264 (method url-fetch)
e4217023
HG
265 (uri (pypi-uri
266 "trytond_account_invoice_stock"
267 version))
23dc957c 268 (sha256
823cca8b 269 (base32 "02m6ikcc38ac41ddzg5xp5l9jz0k6j7j1g2xa62ki4v093yn4z5v"))))
23dc957c
VM
270 (build-system python-build-system)
271 (arguments
272 `(#:phases
273 (modify-phases %standard-phases
274 (replace 'check
275 (let ((runtest
276 (string-append
0ad07005 277 (assoc-ref %build-inputs "trytond")
23dc957c
VM
278 "/lib/python"
279 ,(version-major+minor (package-version python))
280 "/site-packages/trytond/tests/run-tests.py")))
281 (lambda* (#:key inputs outputs #:allow-other-keys)
282 (add-installed-pythonpath inputs outputs)
e4217023 283 (invoke "python" runtest "-m" "account_invoice_stock")))))))
23dc957c 284 (native-inputs
08ec571c 285 `(("python-dateutil" ,python-dateutil)
23dc957c 286 ("python-genshi" ,python-genshi)
23dc957c
VM
287 ("python-lxml" ,python-lxml)
288 ("python-magic" ,python-magic)
289 ("python-passlib" ,python-passlib)
290 ("python-polib" ,python-polib)
291 ("python-proteus" ,python-proteus)
23dc957c 292 ("python-relatorio" ,python-relatorio)
e4217023 293 ("python-sql" ,python-sql)
23dc957c
VM
294 ("python-werkzeug" ,python-werkzeug)
295 ("python-wrapt" ,python-wrapt)))
296 (propagated-inputs
e4217023
HG
297 `(("python-trytond-account-invoice"
298 ,python-trytond-account-invoice)
299 ("python-trytond-product"
300 ,python-trytond-product)
301 ("python-trytond-stock" ,python-trytond-stock)
0ad07005 302 ("trytond" ,trytond)))
23dc957c 303 (home-page "https://www.tryton.org/")
e4217023 304 (synopsis "Tryton module to link stock and invoice")
23dc957c 305 (description
e4217023
HG
306 "This package provides a Tryton module that adds link between invoice
307lines and stock moves. The unit price of the stock move is updated with the
308average price of the posted invoice lines that are linked to it.")
23dc957c
VM
309 (license license:gpl3+)))
310
e4217023 311(define-public python-trytond-account-product
666489d6 312 (package
e4217023 313 (name "python-trytond-account-product")
823cca8b 314 (version "5.8.1")
666489d6
VM
315 (source
316 (origin
317 (method url-fetch)
e4217023 318 (uri (pypi-uri "trytond_account_product" version))
666489d6 319 (sha256
823cca8b 320 (base32 "10bpbkkmllbh9lm5ajydmc5nvqm9bbdn9rmm03jqgik23s5kyx2z"))))
666489d6
VM
321 (build-system python-build-system)
322 (arguments
323 `(#:phases
324 (modify-phases %standard-phases
325 (replace 'check
326 (let ((runtest
327 (string-append
0ad07005 328 (assoc-ref %build-inputs "trytond")
666489d6
VM
329 "/lib/python"
330 ,(version-major+minor (package-version python))
331 "/site-packages/trytond/tests/run-tests.py")))
332 (lambda* (#:key inputs outputs #:allow-other-keys)
333 (add-installed-pythonpath inputs outputs)
e4217023 334 (invoke "python" runtest "-m" "account_product")))))))
666489d6 335 (native-inputs
08ec571c 336 `(("python-dateutil" ,python-dateutil)
666489d6
VM
337 ("python-genshi" ,python-genshi)
338 ("python-lxml" ,python-lxml)
339 ("python-magic" ,python-magic)
340 ("python-passlib" ,python-passlib)
341 ("python-polib" ,python-polib)
342 ("python-proteus" ,python-proteus)
343 ("python-relatorio" ,python-relatorio)
344 ("python-sql" ,python-sql)
345 ("python-werkzeug" ,python-werkzeug)
346 ("python-wrapt" ,python-wrapt)))
347 (propagated-inputs
e4217023
HG
348 `(("python-trytond-account"
349 ,python-trytond-account)
350 ("python-trytond-analytic-account"
351 ,python-trytond-analytic-account)
352 ("python-trytond-company"
353 ,python-trytond-company)
354 ("python-trytond-product"
355 ,python-trytond-product)
0ad07005 356 ("trytond" ,trytond)))
666489d6 357 (home-page "https://www.tryton.org/")
e4217023 358 (synopsis "Tryton module to add accounting on product")
666489d6 359 (description
e4217023
HG
360 "This package provides a Tryton module that adds accounting on product
361and category.")
666489d6
VM
362 (license license:gpl3+)))
363
e4217023 364(define-public python-trytond-analytic-account
e6e031e9 365 (package
e4217023 366 (name "python-trytond-analytic-account")
823cca8b 367 (version "5.8.1")
e6e031e9
VM
368 (source
369 (origin
370 (method url-fetch)
e4217023 371 (uri (pypi-uri "trytond_analytic_account" version))
e6e031e9 372 (sha256
823cca8b 373 (base32 "10rn2rf1ji7d1gxmgca368yvabql1ahklqg7p8sh5bl79vn5qx5x"))))
e6e031e9
VM
374 (build-system python-build-system)
375 (arguments
376 `(#:phases
377 (modify-phases %standard-phases
378 (replace 'check
379 (let ((runtest
380 (string-append
0ad07005 381 (assoc-ref %build-inputs "trytond")
e6e031e9
VM
382 "/lib/python"
383 ,(version-major+minor (package-version python))
384 "/site-packages/trytond/tests/run-tests.py")))
385 (lambda* (#:key inputs outputs #:allow-other-keys)
386 (add-installed-pythonpath inputs outputs)
e4217023 387 (invoke "python" runtest "-m" "analytic_account")))))))
e6e031e9 388 (native-inputs
08ec571c 389 `(("python-dateutil" ,python-dateutil)
e6e031e9
VM
390 ("python-genshi" ,python-genshi)
391 ("python-lxml" ,python-lxml)
392 ("python-magic" ,python-magic)
393 ("python-passlib" ,python-passlib)
394 ("python-polib" ,python-polib)
395 ("python-proteus" ,python-proteus)
396 ("python-relatorio" ,python-relatorio)
397 ("python-werkzeug" ,python-werkzeug)
398 ("python-wrapt" ,python-wrapt)))
399 (propagated-inputs
400 `(("python-sql" ,python-sql)
e4217023
HG
401 ("python-trytond-account"
402 ,python-trytond-account)
e6e031e9 403 ("python-trytond-company"
0ad07005 404 ,python-trytond-company)
e4217023
HG
405 ("python-trytond-currency"
406 ,python-trytond-currency)
407 ("python-trytond-party" ,python-trytond-party)
0ad07005 408 ("trytond" ,trytond)))
e6e031e9 409 (home-page "https://www.tryton.org/")
e4217023 410 (synopsis "Tryton module for analytic accounting")
e6e031e9 411 (description
e4217023
HG
412 "This package provides a Tryton module that adds the fundamentals
413required to analyse accounting using multiple different axes.")
e6e031e9
VM
414 (license license:gpl3+)))
415
e4217023 416(define-public python-trytond-company
84cca05c 417 (package
e4217023 418 (name "python-trytond-company")
823cca8b 419 (version "5.8.1")
84cca05c
VM
420 (source
421 (origin
422 (method url-fetch)
e4217023 423 (uri (pypi-uri "trytond_company" version))
84cca05c 424 (sha256
823cca8b 425 (base32 "1bwy2rkgfw32cwhq5fh3rpy7bx425h44ap10i9kjx5ak86bfnpz9"))))
84cca05c
VM
426 (build-system python-build-system)
427 (arguments
428 `(#:phases
429 (modify-phases %standard-phases
430 (replace 'check
431 (let ((runtest
432 (string-append
0ad07005 433 (assoc-ref %build-inputs "trytond")
84cca05c
VM
434 "/lib/python"
435 ,(version-major+minor (package-version python))
436 "/site-packages/trytond/tests/run-tests.py")))
437 (lambda* (#:key inputs outputs #:allow-other-keys)
438 (add-installed-pythonpath inputs outputs)
e4217023 439 (invoke "python" runtest "-m" "company")))))))
84cca05c 440 (native-inputs
08ec571c 441 `(("python-dateutil" ,python-dateutil)
84cca05c
VM
442 ("python-genshi" ,python-genshi)
443 ("python-lxml" ,python-lxml)
444 ("python-magic" ,python-magic)
445 ("python-passlib" ,python-passlib)
446 ("python-polib" ,python-polib)
447 ("python-proteus" ,python-proteus)
448 ("python-relatorio" ,python-relatorio)
e4217023 449 ("python-sql" ,python-sql)
84cca05c
VM
450 ("python-werkzeug" ,python-werkzeug)
451 ("python-wrapt" ,python-wrapt)))
452 (propagated-inputs
e4217023 453 `(("python-trytond-currency"
84cca05c 454 ,python-trytond-currency)
0ad07005
HG
455 ("python-trytond-party" ,python-trytond-party)
456 ("trytond" ,trytond)))
84cca05c 457 (home-page "https://www.tryton.org/")
e4217023 458 (synopsis "Tryton module with companies and employees")
84cca05c 459 (description
e4217023
HG
460 "This package provides a Tryton module that defines the concepts of
461company and employee and extend the user model.")
84cca05c
VM
462 (license license:gpl3+)))
463
e4217023 464(define-public python-trytond-country
e03024f8 465 (package
e4217023 466 (name "python-trytond-country")
823cca8b 467 (version "5.8.1")
e03024f8
VM
468 (source
469 (origin
470 (method url-fetch)
e4217023 471 (uri (pypi-uri "trytond_country" version))
e03024f8 472 (sha256
823cca8b 473 (base32 "1lkspk5w5pb0gg2h27zb7vwcj993gkm1f84qdxmqlpkc8raqvicj"))))
e03024f8
VM
474 (build-system python-build-system)
475 (arguments
476 `(#:phases
477 (modify-phases %standard-phases
478 (replace 'check
479 (let ((runtest
480 (string-append
0ad07005 481 (assoc-ref %build-inputs "trytond")
e03024f8
VM
482 "/lib/python"
483 ,(version-major+minor (package-version python))
484 "/site-packages/trytond/tests/run-tests.py")))
485 (lambda* (#:key inputs outputs #:allow-other-keys)
486 (add-installed-pythonpath inputs outputs)
e4217023
HG
487 ;; Doctest contains one test that requires internet access.
488 (invoke "python" runtest "-m" "country" "--no-doctest")))))))
e03024f8 489 (native-inputs
08ec571c 490 `(("python-dateutil" ,python-dateutil)
e03024f8
VM
491 ("python-genshi" ,python-genshi)
492 ("python-lxml" ,python-lxml)
493 ("python-magic" ,python-magic)
494 ("python-passlib" ,python-passlib)
495 ("python-polib" ,python-polib)
496 ("python-proteus" ,python-proteus)
497 ("python-relatorio" ,python-relatorio)
e4217023 498 ("python-sql" ,python-sql)
e03024f8
VM
499 ("python-werkzeug" ,python-werkzeug)
500 ("python-wrapt" ,python-wrapt)))
501 (propagated-inputs
e4217023 502 `(("python-pycountry" ,python-pycountry)
0ad07005 503 ("trytond" ,trytond)))
e4217023
HG
504 (home-page "http://www.tryton.org/")
505 (synopsis "Tryton module with countries")
e03024f8 506 (description
e4217023 507 "This package provides a Tryton module with countries.")
e03024f8
VM
508 (license license:gpl3+)))
509
e4217023 510(define-public python-trytond-currency
0f14b0c9 511 (package
e4217023 512 (name "python-trytond-currency")
823cca8b 513 (version "5.8.1")
0f14b0c9
VM
514 (source
515 (origin
516 (method url-fetch)
e4217023 517 (uri (pypi-uri "trytond_currency" version))
0f14b0c9 518 (sha256
823cca8b 519 (base32 "0b5p7ibil7nlsv7f31j69rka4xj5za798262algx7xa88a6h7mmx"))))
0f14b0c9
VM
520 (build-system python-build-system)
521 (arguments
522 `(#:phases
523 (modify-phases %standard-phases
524 (replace 'check
525 (let ((runtest
526 (string-append
0ad07005 527 (assoc-ref %build-inputs "trytond")
0f14b0c9
VM
528 "/lib/python"
529 ,(version-major+minor (package-version python))
530 "/site-packages/trytond/tests/run-tests.py")))
531 (lambda* (#:key inputs outputs #:allow-other-keys)
532 (add-installed-pythonpath inputs outputs)
e4217023 533 (invoke "python" runtest "-m" "currency")))))))
0f14b0c9 534 (native-inputs
08ec571c 535 `(("python-dateutil" ,python-dateutil)
0f14b0c9 536 ("python-genshi" ,python-genshi)
e4217023 537 ("python-forex-python" ,python-forex-python)
0f14b0c9
VM
538 ("python-lxml" ,python-lxml)
539 ("python-magic" ,python-magic)
540 ("python-passlib" ,python-passlib)
541 ("python-polib" ,python-polib)
542 ("python-proteus" ,python-proteus)
e4217023 543 ("python-pycountry" ,python-pycountry)
0f14b0c9 544 ("python-relatorio" ,python-relatorio)
0f14b0c9
VM
545 ("python-werkzeug" ,python-werkzeug)
546 ("python-wrapt" ,python-wrapt)))
547 (propagated-inputs
e4217023 548 `(("python-sql" ,python-sql)
0ad07005 549 ("trytond" ,trytond)))
0f14b0c9 550 (home-page "https://www.tryton.org/")
e4217023 551 (synopsis "Tryton module with currencies")
0f14b0c9 552 (description
e4217023
HG
553 "This package provides a Tryton module that defines the concepts of
554currency and rate.")
0f14b0c9
VM
555 (license license:gpl3+)))
556
e4217023 557(define-public python-trytond-party
63c5e70e 558 (package
e4217023 559 (name "python-trytond-party")
823cca8b 560 (version "5.8.1")
63c5e70e
VM
561 (source
562 (origin
563 (method url-fetch)
e4217023 564 (uri (pypi-uri "trytond_party" version))
63c5e70e 565 (sha256
823cca8b 566 (base32 "1hapfq7ip99s4qp9xra1m40q4n379p9pmfnz2x4ggd79ss76bghc"))))
63c5e70e
VM
567 (build-system python-build-system)
568 (arguments
569 `(#:phases
570 (modify-phases %standard-phases
571 (replace 'check
572 (let ((runtest
573 (string-append
0ad07005 574 (assoc-ref %build-inputs "trytond")
63c5e70e
VM
575 "/lib/python"
576 ,(version-major+minor (package-version python))
577 "/site-packages/trytond/tests/run-tests.py")))
578 (lambda* (#:key inputs outputs #:allow-other-keys)
579 (add-installed-pythonpath inputs outputs)
e4217023
HG
580 ;; Doctest 'scenario_party_phone_number.rst' fails.
581 (invoke "python" runtest "-m" "party" "--no-doctest")))))))
63c5e70e 582 (native-inputs
08ec571c 583 `(("python-dateutil" ,python-dateutil)
63c5e70e
VM
584 ("python-genshi" ,python-genshi)
585 ("python-lxml" ,python-lxml)
586 ("python-magic" ,python-magic)
587 ("python-passlib" ,python-passlib)
588 ("python-polib" ,python-polib)
589 ("python-proteus" ,python-proteus)
590 ("python-relatorio" ,python-relatorio)
591 ("python-werkzeug" ,python-werkzeug)
592 ("python-wrapt" ,python-wrapt)))
593 (propagated-inputs
e4217023
HG
594 `(("python-sql" ,python-sql)
595 ("python-stnum" ,python-stdnum)
596 ("python-trytond-country" ,python-trytond-country)
0ad07005 597 ("trytond" ,trytond)))
63c5e70e 598 (home-page "https://www.tryton.org/")
e4217023 599 (synopsis "Tryton module for parties and addresses")
63c5e70e 600 (description
e4217023
HG
601 "This package provides a Tryton module for (counter)parties and
602addresses.")
63c5e70e
VM
603 (license license:gpl3+)))
604
e4217023 605(define-public python-trytond-product
6844d364 606 (package
e4217023 607 (name "python-trytond-product")
823cca8b 608 (version "5.8.1")
6844d364
VM
609 (source
610 (origin
611 (method url-fetch)
e4217023 612 (uri (pypi-uri "trytond_product" version))
6844d364 613 (sha256
823cca8b 614 (base32 "0x18ngpjyrdwjwg17bz98jph4jv5gcv0qc0p2kxpam4lqsy34ic2"))))
6844d364
VM
615 (build-system python-build-system)
616 (arguments
617 `(#:phases
618 (modify-phases %standard-phases
619 (replace 'check
620 (let ((runtest
621 (string-append
0ad07005 622 (assoc-ref %build-inputs "trytond")
6844d364
VM
623 "/lib/python"
624 ,(version-major+minor (package-version python))
625 "/site-packages/trytond/tests/run-tests.py")))
626 (lambda* (#:key inputs outputs #:allow-other-keys)
627 (add-installed-pythonpath inputs outputs)
e4217023 628 (invoke "python" runtest "-m" "product")))))))
6844d364 629 (native-inputs
08ec571c 630 `(("python-dateutil" ,python-dateutil)
6844d364
VM
631 ("python-genshi" ,python-genshi)
632 ("python-lxml" ,python-lxml)
633 ("python-magic" ,python-magic)
634 ("python-passlib" ,python-passlib)
635 ("python-polib" ,python-polib)
636 ("python-proteus" ,python-proteus)
637 ("python-relatorio" ,python-relatorio)
638 ("python-werkzeug" ,python-werkzeug)
639 ("python-wrapt" ,python-wrapt)))
640 (propagated-inputs
e4217023
HG
641 `(("python-sql" ,python-sql)
642 ("python-stdnum" ,python-stdnum)
6844d364
VM
643 ("python-trytond-company"
644 ,python-trytond-company)
0ad07005 645 ("trytond" ,trytond)))
6844d364 646 (home-page "https://www.tryton.org/")
e4217023 647 (synopsis "Tryton module with products")
6844d364 648 (description
e4217023
HG
649 "This package provides a Tryton module that defines two concepts: Product
650Template and Product.")
6844d364
VM
651 (license license:gpl3+)))
652
e4217023 653(define-public python-trytond-purchase
06d206a7 654 (package
e4217023 655 (name "python-trytond-purchase")
823cca8b 656 (version "5.8.1")
06d206a7
VM
657 (source
658 (origin
659 (method url-fetch)
e4217023 660 (uri (pypi-uri "trytond_purchase" version))
06d206a7 661 (sha256
823cca8b 662 (base32 "0na74zijj46b12gypy9si3las02a96rh5ygl503c7razha61g1b0"))))
06d206a7
VM
663 (build-system python-build-system)
664 (arguments
665 `(#:phases
666 (modify-phases %standard-phases
667 (replace 'check
668 (let ((runtest
669 (string-append
0ad07005 670 (assoc-ref %build-inputs "trytond")
06d206a7
VM
671 "/lib/python"
672 ,(version-major+minor (package-version python))
673 "/site-packages/trytond/tests/run-tests.py")))
674 (lambda* (#:key inputs outputs #:allow-other-keys)
675 (add-installed-pythonpath inputs outputs)
e4217023 676 (invoke "python" runtest "-m" "purchase")))))))
06d206a7 677 (native-inputs
08ec571c 678 `(("python-dateutil" ,python-dateutil)
06d206a7
VM
679 ("python-genshi" ,python-genshi)
680 ("python-lxml" ,python-lxml)
681 ("python-magic" ,python-magic)
682 ("python-passlib" ,python-passlib)
683 ("python-polib" ,python-polib)
684 ("python-proteus" ,python-proteus)
685 ("python-relatorio" ,python-relatorio)
06d206a7
VM
686 ("python-werkzeug" ,python-werkzeug)
687 ("python-wrapt" ,python-wrapt)))
688 (propagated-inputs
e4217023
HG
689 `(("python-sql" ,python-sql)
690 ("python-trytond-account"
691 ,python-trytond-account)
692 ("python-trytond-account-invoice"
693 ,python-trytond-account-invoice)
694 ("python-trytond-account-invoice-stock"
695 ,python-trytond-account-invoice-stock)
696 ("python-trytond-account-product"
697 ,python-trytond-account-product)
698 ("python-trytond-company"
699 ,python-trytond-company)
700 ("python-trytond-currency"
701 ,python-trytond-currency)
702 ("python-trytond-party" ,python-trytond-party)
703 ("python-trytond-product"
06d206a7 704 ,python-trytond-product)
0ad07005
HG
705 ("python-trytond-stock" ,python-trytond-stock)
706 ("trytond" ,trytond)))
06d206a7 707 (home-page "https://www.tryton.org/")
e4217023 708 (synopsis "Tryton module for purchase")
06d206a7 709 (description
e4217023 710 "This package provides a Tryton module that defines the Purchase model.")
06d206a7
VM
711 (license license:gpl3+)))
712
e4217023 713(define-public python-trytond-purchase-request
7e32de0f 714 (package
e4217023 715 (name "python-trytond-purchase-request")
823cca8b 716 (version "5.8.1")
7e32de0f
VM
717 (source
718 (origin
719 (method url-fetch)
e4217023 720 (uri (pypi-uri "trytond_purchase_request" version))
7e32de0f 721 (sha256
823cca8b 722 (base32 "1m92snnvgisnv083nml6cz5qgnfdg539rd5bwg3lqrknm7343w16"))))
7e32de0f
VM
723 (build-system python-build-system)
724 (arguments
725 `(#:phases
726 (modify-phases %standard-phases
727 (replace 'check
728 (let ((runtest
729 (string-append
0ad07005 730 (assoc-ref %build-inputs "trytond")
7e32de0f
VM
731 "/lib/python"
732 ,(version-major+minor (package-version python))
733 "/site-packages/trytond/tests/run-tests.py")))
734 (lambda* (#:key inputs outputs #:allow-other-keys)
735 (add-installed-pythonpath inputs outputs)
e4217023
HG
736 ;; Doctest 'scenario_purchase_request.rst' fails.
737 (invoke "python" runtest
738 "-m" "purchase_request" "--no-doctest")))))))
7e32de0f 739 (native-inputs
08ec571c 740 `(("python-dateutil" ,python-dateutil)
7e32de0f
VM
741 ("python-genshi" ,python-genshi)
742 ("python-lxml" ,python-lxml)
743 ("python-magic" ,python-magic)
744 ("python-passlib" ,python-passlib)
745 ("python-polib" ,python-polib)
746 ("python-proteus" ,python-proteus)
747 ("python-relatorio" ,python-relatorio)
748 ("python-sql" ,python-sql)
749 ("python-werkzeug" ,python-werkzeug)
750 ("python-wrapt" ,python-wrapt)))
751 (propagated-inputs
e4217023 752 `(("python-trytond-product"
7e32de0f 753 ,python-trytond-product)
e4217023
HG
754 ("python-trytond-purchase"
755 ,python-trytond-purchase)
0ad07005 756 ("trytond" ,trytond)))
7e32de0f 757 (home-page "https://www.tryton.org/")
e4217023 758 (synopsis "Tryton module for purchase requests")
7e32de0f 759 (description
e4217023
HG
760 "This package provides a Tryton module that introduces the concept of
761Purchase Requests which are central points to collect purchase requests
762generated by other process from Tryton.")
7e32de0f
VM
763 (license license:gpl3+)))
764
e4217023 765(define-public python-trytond-stock
0a97b172 766 (package
e4217023 767 (name "python-trytond-stock")
823cca8b 768 (version "5.8.2")
0a97b172
VM
769 (source
770 (origin
771 (method url-fetch)
e4217023 772 (uri (pypi-uri "trytond_stock" version))
0a97b172 773 (sha256
823cca8b 774 (base32 "0yb8kd3alwqkivrlpx0ni4jxv3x14i37lmwism9yi81xwchyrcjk"))))
0a97b172
VM
775 (build-system python-build-system)
776 (arguments
777 `(#:phases
778 (modify-phases %standard-phases
779 (replace 'check
780 (let ((runtest
781 (string-append
0ad07005 782 (assoc-ref %build-inputs "trytond")
0a97b172
VM
783 "/lib/python"
784 ,(version-major+minor (package-version python))
785 "/site-packages/trytond/tests/run-tests.py")))
786 (lambda* (#:key inputs outputs #:allow-other-keys)
787 (add-installed-pythonpath inputs outputs)
e4217023 788 (invoke "python" runtest "-m" "stock")))))))
0a97b172 789 (native-inputs
08ec571c 790 `(("python-genshi" ,python-genshi)
0a97b172
VM
791 ("python-lxml" ,python-lxml)
792 ("python-magic" ,python-magic)
793 ("python-passlib" ,python-passlib)
794 ("python-polib" ,python-polib)
795 ("python-proteus" ,python-proteus)
796 ("python-relatorio" ,python-relatorio)
797 ("python-werkzeug" ,python-werkzeug)
798 ("python-wrapt" ,python-wrapt)))
799 (propagated-inputs
e4217023
HG
800 `(("python-simpleeval" ,python-simpleeval)
801 ("python-sql" ,python-sql)
802 ("python-trytond-company"
803 ,python-trytond-company)
804 ("python-trytond-currency"
805 ,python-trytond-currency)
0a97b172
VM
806 ("python-trytond-party" ,python-trytond-party)
807 ("python-trytond-product"
808 ,python-trytond-product)
0ad07005 809 ("trytond" ,trytond)))
0a97b172 810 (home-page "https://www.tryton.org/")
e4217023 811 (synopsis "Tryton module for stock and inventory")
0a97b172 812 (description
e4217023
HG
813 "This package provides a Tryton module that defines the fundamentals for
814all stock management situations: Locations where products are stored, moves
815between these locations, shipments for product arrivals and departures and
816inventory to control and update stock levels.")
0a97b172
VM
817 (license license:gpl3+)))
818
e4217023 819(define-public python-trytond-stock-lot
51459b8f 820 (package
e4217023 821 (name "python-trytond-stock-lot")
823cca8b 822 (version "5.8.2")
51459b8f
VM
823 (source
824 (origin
825 (method url-fetch)
e4217023 826 (uri (pypi-uri "trytond_stock_lot" version))
51459b8f 827 (sha256
823cca8b 828 (base32 "0w2f62cfzm7j8wnw8igmjslpxc1a8s82dkdizyvim5qhjg6mrsym"))))
51459b8f
VM
829 (build-system python-build-system)
830 (arguments
831 `(#:phases
832 (modify-phases %standard-phases
833 (replace 'check
834 (let ((runtest
835 (string-append
0ad07005 836 (assoc-ref %build-inputs "trytond")
51459b8f
VM
837 "/lib/python"
838 ,(version-major+minor (package-version python))
839 "/site-packages/trytond/tests/run-tests.py")))
840 (lambda* (#:key inputs outputs #:allow-other-keys)
841 (add-installed-pythonpath inputs outputs)
e4217023 842 (invoke "python" runtest "-m" "stock_lot")))))))
51459b8f 843 (native-inputs
08ec571c 844 `(("python-dateutil" ,python-dateutil)
51459b8f
VM
845 ("python-genshi" ,python-genshi)
846 ("python-lxml" ,python-lxml)
847 ("python-magic" ,python-magic)
848 ("python-passlib" ,python-passlib)
849 ("python-polib" ,python-polib)
850 ("python-proteus" ,python-proteus)
851 ("python-relatorio" ,python-relatorio)
e4217023 852 ("python-sql" ,python-sql)
51459b8f
VM
853 ("python-werkzeug" ,python-werkzeug)
854 ("python-wrapt" ,python-wrapt)))
855 (propagated-inputs
e4217023 856 `(("python-trytond-product"
51459b8f 857 ,python-trytond-product)
0ad07005
HG
858 ("python-trytond-stock" ,python-trytond-stock)
859 ("trytond" ,trytond)))
51459b8f 860 (home-page "https://www.tryton.org/")
e4217023 861 (synopsis "Tryton module for lot of products")
51459b8f 862 (description
e4217023 863 "This package provides a Tryton module that defines lot of products.")
51459b8f
VM
864 (license license:gpl3+)))
865
e4217023 866(define-public python-trytond-stock-supply
261b5cce 867 (package
e4217023 868 (name "python-trytond-stock-supply")
823cca8b 869 (version "5.8.1")
261b5cce
VM
870 (source
871 (origin
872 (method url-fetch)
e4217023 873 (uri (pypi-uri "trytond_stock_supply" version))
261b5cce 874 (sha256
823cca8b 875 (base32 "01cgpxlznldrba79a3xmj4d0csyfc3ccgs66c490j8v8rdnqpbww"))))
261b5cce
VM
876 (build-system python-build-system)
877 (arguments
878 `(#:phases
879 (modify-phases %standard-phases
880 (replace 'check
881 (let ((runtest
882 (string-append
0ad07005 883 (assoc-ref %build-inputs "trytond")
261b5cce
VM
884 "/lib/python"
885 ,(version-major+minor (package-version python))
886 "/site-packages/trytond/tests/run-tests.py")))
887 (lambda* (#:key inputs outputs #:allow-other-keys)
888 (add-installed-pythonpath inputs outputs)
e4217023 889 (invoke "python" runtest "-m" "stock_supply")))))))
261b5cce 890 (native-inputs
08ec571c 891 `(("python-dateutil" ,python-dateutil)
261b5cce
VM
892 ("python-genshi" ,python-genshi)
893 ("python-lxml" ,python-lxml)
894 ("python-magic" ,python-magic)
895 ("python-passlib" ,python-passlib)
896 ("python-polib" ,python-polib)
897 ("python-proteus" ,python-proteus)
898 ("python-relatorio" ,python-relatorio)
261b5cce
VM
899 ("python-werkzeug" ,python-werkzeug)
900 ("python-wrapt" ,python-wrapt)))
901 (propagated-inputs
e4217023
HG
902 `(("python-sql" ,python-sql)
903 ("python-trytond-account"
904 ,python-trytond-account)
905 ("python-trytond-party" ,python-trytond-party)
906 ("python-trytond-product"
261b5cce
VM
907 ,python-trytond-product)
908 ("python-trytond-purchase"
0ad07005 909 ,python-trytond-purchase)
e4217023
HG
910 ("python-trytond-purchase-request"
911 ,python-trytond-purchase-request)
912 ("python-trytond-stock" ,python-trytond-stock)
0ad07005 913 ("trytond" ,trytond)))
261b5cce 914 (home-page "https://www.tryton.org/")
e4217023 915 (synopsis "Tryton module for stock supply")
261b5cce 916 (description
e4217023
HG
917 "This package provides a Tryton module that adds automatic supply
918mechanisms and introduces the concepts of order point.")
261b5cce 919 (license license:gpl3+)))