From 6de7e59f8b172c6677c7463c72dfe5bf57cbef11 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 22 Aug 2020 13:07:41 -0300 Subject: gnu: tryton: Update to 5.6.3. * gnu/packages/tryton.scm (tryton): Update to 5.6.3. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 39 ++++++++++++++++++++++++++++++--------- 1 file changed, 30 insertions(+), 9 deletions(-) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index a2952f2b80..10d349844f 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -1,5 +1,6 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2017 Adriano Peluso +;;; Copyright © 2020 Vinicius Monego ;;; ;;; This file is part of GNU Guix. ;;; @@ -22,6 +23,8 @@ #:use-module (gnu packages check) #:use-module (gnu packages databases) #:use-module (gnu packages finance) + #:use-module (gnu packages glib) + #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages python) #:use-module (gnu packages python-web) @@ -77,24 +80,42 @@ and security.") (define-public tryton (package (name "tryton") - (version "4.6.2") + (version "5.6.3") (source (origin (method url-fetch) (uri (pypi-uri "tryton" version)) (sha256 - (base32 - "0bamr040np02gfjk8c734rw3mbgg75irfgpdcl2npgkdzyw1ksf9")))) + (base32 "1dghr6x5wga3sizjvj261xndpl38si5hwiz3llm2bhmg33nplfh7")))) (build-system python-build-system) - (inputs - `(("python2-chardet" ,python2-chardet) - ("python2-dateutil" ,python2-dateutil) - ("python2-pygtk" ,python2-pygtk))) (arguments - `(#:python ,python-2)) + `(#:phases + (modify-phases %standard-phases + (add-before 'check 'change-home + (lambda _ + ;; Change from /homeless-shelter to /tmp for write permission. + (setenv "HOME" "/tmp"))) + (add-after 'install 'wrap-gi-python + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out")) + (gi-typelib-path (getenv "GI_TYPELIB_PATH"))) + (wrap-program (string-append out "/bin/tryton") + `("GI_TYPELIB_PATH" ":" prefix (,gi-typelib-path)))) + #t))))) + (native-inputs + `(("glib-compile-schemas" ,glib "bin") + ("gobject-introspection" ,gobject-introspection))) + (inputs + `(("gdk-pixbuf" ,gdk-pixbuf+svg) + ("gsettings-desktop-schemas" ,gsettings-desktop-schemas) + ("gtk+" ,gtk+) + ("python-dateutil" ,python-dateutil) + ("python-pycairo" ,python-pycairo) + ("python-pygobject" ,python-pygobject))) (home-page "https://www.tryton.org/") (synopsis "Client component of Tryton") - (description "This package is the client component of Tryton.") + (description + "This package is the client component of Tryton.") (license license:gpl3+))) (define-public python-trytond-country -- cgit v1.2.3 From d649704ebc647719d23407aeb312f103001c32d7 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 22 Aug 2020 13:10:34 -0300 Subject: gnu: python-trytond: Update to 5.6.5. * gnu/packages/tryton.scm (python-trytond): Update to 5.6.5. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 10d349844f..85d9a12425 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -27,6 +27,7 @@ #:use-module (gnu packages gnome) #:use-module (gnu packages gtk) #:use-module (gnu packages python) + #:use-module (gnu packages python-crypto) #:use-module (gnu packages python-web) #:use-module (gnu packages python-xyz) #:use-module (gnu packages time) @@ -38,25 +39,23 @@ (define-public python-trytond (package (name "python-trytond") - (version "4.6.2") + (version "5.6.5") (source (origin (method url-fetch) (uri (pypi-uri "trytond" version)) (sha256 - (base32 - "0asc3pd37h8ky8j66iqxr0fv0k6mpjcwxwm0xgm5hrdi32l5cdda")))) + (base32 "1n76ccv2x5csz80p42dav8rhzg2m14wdi3bj1pizhw8x2hxxfwx3")))) (build-system python-build-system) (inputs `(("python-dateutil" ,python-dateutil) ("python-genshi" ,python-genshi) - ("python-polib" ,python-polib) + ("python-lxml" ,python-lxml) ("python-magic" ,python-magic) - ;; there's no python-mysql in Guix right now - ;; so python-psycopg2 (postgresql) only for now + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) ("python-psycopg2" ,python-psycopg2) ("python-relatorio" ,python-relatorio) - ("python-lxml" ,python-lxml) ("python-sql" ,python-sql) ("python-werkzeug" ,python-werkzeug) ("python-wrapt" ,python-wrapt))) @@ -68,6 +67,7 @@ (add-before 'check 'preparations (lambda _ (setenv "DB_NAME" ":memory:") + (setenv "HOME" "/tmp") #t))))) (home-page "https://www.tryton.org/") (synopsis "Server component of Tryton") -- cgit v1.2.3 From a5bdb72d6981484c08794bf2b664921b83fd7293 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 22 Aug 2020 13:10:35 -0300 Subject: gnu: python-proteus: Update to 5.6.0. * gnu/packages/tryton.scm (python-proteus): Update to 5.6.0. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 85d9a12425..a50e2e1549 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -192,31 +192,21 @@ addresses.") (define-public python-proteus (package (name "python-proteus") - (version "4.6.0") + (version "5.6.0") (source (origin (method url-fetch) (uri (pypi-uri "proteus" version)) (sha256 - (base32 - "0flkf1vxbhz51b7bq31dn7q9mlkli3pmpbzfhsxfqpf6laghbkqg")))) + (base32 "0kxac5pkps243wf0xbmbd1g5bml96xl94j88y6yyzm093vyli150")))) (build-system python-build-system) + ;; Tests require python-trytond-party which requires python-proteus. + (arguments + `(#:tests? #f)) (propagated-inputs - `(("python-dateutil" ,python-dateutil) - ("python-trytond-party" ,python-trytond-party) - ("python-trytond-country" ,python-trytond-country) - ("python-trytond" ,python-trytond) - ("python-stdnum" ,python-stdnum) - ("python-sql" ,python-sql) - ("python-wrapt" ,python-wrapt) - ("python-werkzeug" ,python-werkzeug) - ("python-polib" ,python-polib) - ("python-genshi" ,python-genshi) - ("python-relatorio" ,python-relatorio) - ("python-magic" ,python-magic))) + `(("python-dateutil" ,python-dateutil))) (home-page "http://www.tryton.org/") - (synopsis - "Library to access a Tryton server as a client") + (synopsis "Library to access a Tryton server as a client") (description "This package provides a library to access Tryton server as a client.") (license license:lgpl3+))) -- cgit v1.2.3 From 106dd72bc5cf1f70dfd1bd772fac543927a756b3 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 22 Aug 2020 13:10:36 -0300 Subject: gnu: python-trytond-country: Update to 5.6.0. * gnu/packages/tryton.scm (python-trytond-country): Update to 5.6.0. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 76 +++++++++++++++++++++++++++++-------------------- 1 file changed, 45 insertions(+), 31 deletions(-) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index a50e2e1549..076aaef72b 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -34,6 +34,7 @@ #:use-module (gnu packages xml) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system python)) (define-public python-trytond @@ -120,37 +121,50 @@ and security.") (define-public python-trytond-country (package - (name "python-trytond-country") - (version "4.6.0") - (source - (origin - (method url-fetch) - (uri (pypi-uri "trytond_country" version)) - (sha256 - (base32 - "11c9mw2scbjn7c6yhlwh5ml266f0s31lh4jwj6gh7vl1shs3isr3")))) - (build-system python-build-system) - (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'check 'preparations - (lambda _ - (setenv "DB_NAME" ":memory:") - #t))))) - (propagated-inputs - `(("python-trytond" ,python-trytond) - ("python-wrapt" ,python-wrapt) - ("python-werkzeug" ,python-werkzeug) - ("python-sql" ,python-sql) - ("python-polib" ,python-polib) - ("python-dateutil" ,python-dateutil) - ("python-genshi" ,python-genshi) - ("python-relatorio" ,python-relatorio) - ("python-magic" ,python-magic))) - (home-page "http://www.tryton.org/") - (synopsis "Tryton module with countries") - (description "This package provides a Tryton module with countries.") - (license license:gpl3+))) + (name "python-trytond-country") + (version "5.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_country" version)) + (sha256 + (base32 "0k1xw5r2pfd5mvvg3pn3vavwjwpgmm5i6nsc8x421znk4gvvns78")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + ;; Doctest contains one test that requires internet access. + (invoke "python" runtest "-m" "country" "--no-doctest"))))))) + (native-inputs + `(("python" ,python) + ("python-dateutil" ,python-dateutil) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-sql" ,python-sql) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-pycountry" ,python-pycountry) + ("python-trytond" ,python-trytond))) + (home-page "http://www.tryton.org/") + (synopsis "Tryton module with countries") + (description + "This package provides a Tryton module with countries.") + (license license:gpl3+))) (define-public python-trytond-party (package -- cgit v1.2.3 From cb4ebb7f047f529d8d5a53006c8a1e4ce9b10732 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Sat, 22 Aug 2020 13:10:37 -0300 Subject: gnu: python-trytond-party: Update to 5.6.0. * gnu/packages/tryton.scm (python-trytond-party): Update to 5.6.0. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 50 ++++++++++++++++++++++++++++++------------------- 1 file changed, 31 insertions(+), 19 deletions(-) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 076aaef72b..4e44357997 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -169,35 +169,47 @@ and security.") (define-public python-trytond-party (package (name "python-trytond-party") - (version "4.6.0") + (version "5.6.0") (source (origin (method url-fetch) (uri (pypi-uri "trytond_party" version)) (sha256 - (base32 - "0fbf4kxywiglcdsx9ppjg7nxw87915mb6bpn1jn652gk949rdww5")))) + (base32 "0wh7g1g67g4vwxm797ra6fkfvmd3w77vl7nxj76y856cy217gbzp")))) (build-system python-build-system) - ;; XXX The tests seem to require Proteus. But Proteus tests seem to - ;; require trytond-party. (arguments - '(#:tests? #f)) - (propagated-inputs - `(("python-trytond" ,python-trytond) - ("python-trytond-country" ,python-trytond-country) - ("python-stdnum" ,python-stdnum) - ("python-sql" ,python-sql) - ("python-wrapt" ,python-wrapt) - ("python-werkzeug" ,python-werkzeug) - ("python-polib" ,python-polib) + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + ;; Doctest 'scenario_party_phone_number.rst' fails. + (invoke "python" runtest "-m" "party" "--no-doctest"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) ("python-dateutil" ,python-dateutil) ("python-genshi" ,python-genshi) - ("python-relatorio" ,python-relatorio) + ("python-lxml" ,python-lxml) ("python-magic" ,python-magic) - ("python-phonenumbers" ,python-phonenumbers))) - (home-page "http://www.tryton.org/") - (synopsis - "Tryton module for parties and addresses") + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-sql" ,python-sql) + ("python-stnum" ,python-stdnum) + ("python-trytond" ,python-trytond) + ("python-trytond-country" ,python-trytond-country))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module for parties and addresses") (description "This package provides a Tryton module for (counter)parties and addresses.") -- cgit v1.2.3 From 23dc957cb3200cc9e9823cd09412b5c14cd3d71f Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:12 -0300 Subject: gnu: Add python-trytond-currency. * gnu/packages/tryton.scm (python-trytond-currency): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 4e44357997..cd3da1eba5 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -215,6 +215,54 @@ and security.") addresses.") (license license:gpl3+))) +(define-public python-trytond-currency + (package + (name "python-trytond-currency") + (version "5.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_currency" version)) + (sha256 + (base32 "1x6ynxpbafjpky5vfir9favijj6v5gl62szshladlx14ng6qgm68")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "currency"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) + ("python-dateutil" ,python-dateutil) + ("python-genshi" ,python-genshi) + ("python-forex-python" ,python-forex-python) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-pycountry" ,python-pycountry) + ("python-relatorio" ,python-relatorio) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-sql" ,python-sql) + ("python-trytond" ,python-trytond))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module with currencies") + (description + "This package provides a Tryton module that defines the concepts of +currency and rate.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3 From 666489d633f9038455410f2a49c3b2ddf4de6b42 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:13 -0300 Subject: gnu: Add python-trytond-company. * gnu/packages/tryton.scm (python-trytond-company): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index cd3da1eba5..a3ed09d5b8 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -263,6 +263,55 @@ addresses.") currency and rate.") (license license:gpl3+))) +(define-public python-trytond-company + (package + (name "python-trytond-company") + (version "5.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_company" version)) + (sha256 + (base32 "0fa2yswfal1fbmm0ml845lm6bwcm65fln6s1xq1wqi17xqbbx44x")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "company"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) + ("python-dateutil" ,python-dateutil) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-sql" ,python-sql) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-trytond" ,python-trytond) + ("python-trytond-currency" + ,python-trytond-currency) + ("python-trytond-party" ,python-trytond-party))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module with companies and employees") + (description + "This package provides a Tryton module that defines the concepts of +company and employee and extend the user model.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3 From e6e031e99b66de92d081802e13c7d74ffba177e9 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:14 -0300 Subject: gnu: Add python-trytond-product. * gnu/packages/tryton.scm (python-trytond-product): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index a3ed09d5b8..d448046d38 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -312,6 +312,55 @@ currency and rate.") company and employee and extend the user model.") (license license:gpl3+))) +(define-public python-trytond-product + (package + (name "python-trytond-product") + (version "5.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_product" version)) + (sha256 + (base32 "0k1sw1jfgsm9qhyhv4lzama31db6ccjx5f2a7xw96ypflfl9f1xz")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "product"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) + ("python-dateutil" ,python-dateutil) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-sql" ,python-sql) + ("python-stdnum" ,python-stdnum) + ("python-trytond" ,python-trytond) + ("python-trytond-company" + ,python-trytond-company))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module with products") + (description + "This package provides a Tryton module that defines two concepts: Product +Template and Product.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3 From 84cca05cd7bd5602395add20a544d5418e670c3e Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:16 -0300 Subject: gnu: Add python-trytond-account. * gnu/packages/tryton.scm (python-trytond-account): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 52 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index d448046d38..8e475763ec 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -361,6 +361,58 @@ company and employee and extend the user model.") Template and Product.") (license license:gpl3+))) +(define-public python-trytond-account + (package + (name "python-trytond-account") + (version "5.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_account" version)) + (sha256 + (base32 "17q0cxp3vkymbv62ir4c6kg9y8lx8xvz30p0asrbsnbgwl6sjm30")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "account"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-dateutil" ,python-dateutil) + ("python-simpleeval" ,python-simpleeval) + ("python-sql" ,python-sql) + ("python-trytond" ,python-trytond) + ("python-trytond-company" + ,python-trytond-company) + ("python-trytond-currency" + ,python-trytond-currency) + ("python-trytond-party" ,python-trytond-party))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module for accounting") + (description + "This package provides a Tryton module that defines the fundamentals for +most of accounting needs.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3 From 6844d36443c46e42e9f4d159ff2f6c541494676c Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:17 -0300 Subject: gnu: Add python-trytond-stock. * gnu/packages/tryton.scm (python-trytond-stock): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 55 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index 8e475763ec..d88a559260 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -413,6 +413,61 @@ Template and Product.") most of accounting needs.") (license license:gpl3+))) +(define-public python-trytond-stock + (package + (name "python-trytond-stock") + (version "5.6.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_stock" version)) + (sha256 + (base32 "13m57absscks2advpjz0mmmp6c0c4ksf9aln1brqyd0js38arw76")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "stock"))))))) + (native-inputs + `(("python" ,python-minimal-wrapper) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-simpleeval" ,python-simpleeval) + ("python-sql" ,python-sql) + ("python-trytond" ,python-trytond) + ("python-trytond-company" + ,python-trytond-company) + ("python-trytond-currency" + ,python-trytond-currency) + ("python-trytond-party" ,python-trytond-party) + ("python-trytond-product" + ,python-trytond-product))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module for stock and inventory") + (description + "This package provides a Tryton module that defines the fundamentals for +all stock management situations: Locations where products are stored, moves +between these locations, shipments for product arrivals and departures and +inventory to control and update stock levels.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3 From 06d206a76d338739c96872dc749c2f3b33042887 Mon Sep 17 00:00:00 2001 From: Vinicius Monego Date: Mon, 24 Aug 2020 19:20:18 -0300 Subject: gnu: Add python-trytond-stock-lot. * gnu/packages/tryton.scm (python-trytond-stock-lot): New variable. Signed-off-by: Mathieu Othacehe --- gnu/packages/tryton.scm | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) (limited to 'gnu/packages/tryton.scm') diff --git a/gnu/packages/tryton.scm b/gnu/packages/tryton.scm index d88a559260..7cde0db7ea 100644 --- a/gnu/packages/tryton.scm +++ b/gnu/packages/tryton.scm @@ -468,6 +468,54 @@ between these locations, shipments for product arrivals and departures and inventory to control and update stock levels.") (license license:gpl3+))) +(define-public python-trytond-stock-lot + (package + (name "python-trytond-stock-lot") + (version "5.6.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "trytond_stock_lot" version)) + (sha256 + (base32 "0a0kc8dyx2zw244dhq6lm2jdp1kzpllhdhrmx7kkr9cjhp58rqip")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (let ((runtest + (string-append + (assoc-ref %build-inputs "python-trytond") + "/lib/python" + ,(version-major+minor (package-version python)) + "/site-packages/trytond/tests/run-tests.py"))) + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "python" runtest "-m" "stock_lot"))))))) + (native-inputs + `(("python" ,python) + ("python-dateutil" ,python-dateutil) + ("python-genshi" ,python-genshi) + ("python-lxml" ,python-lxml) + ("python-magic" ,python-magic) + ("python-passlib" ,python-passlib) + ("python-polib" ,python-polib) + ("python-proteus" ,python-proteus) + ("python-relatorio" ,python-relatorio) + ("python-sql" ,python-sql) + ("python-werkzeug" ,python-werkzeug) + ("python-wrapt" ,python-wrapt))) + (propagated-inputs + `(("python-trytond" ,python-trytond) + ("python-trytond-product" + ,python-trytond-product) + ("python-trytond-stock" ,python-trytond-stock))) + (home-page "https://www.tryton.org/") + (synopsis "Tryton module for lot of products") + (description + "This package provides a Tryton module that defines lot of products.") + (license license:gpl3+))) + (define-public python-proteus (package (name "python-proteus") -- cgit v1.2.3