all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests.
@ 2021-06-08 13:33 Vinicius Monego
  2021-06-08 13:35 ` [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1 Vinicius Monego
  2021-06-08 17:18 ` bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests Leo Famulari
  0 siblings, 2 replies; 3+ messages in thread
From: Vinicius Monego @ 2021-06-08 13:33 UTC (permalink / raw)
  To: 48920; +Cc: Vinicius Monego

* gnu/packages/python-xyz.scm (python-toolz)[arguments]: Remove #:tests?.
Override check phase.
[native-inputs]: Add python-pytest.
---
 gnu/packages/python-xyz.scm | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0d6c9fc2c5..c724357c11 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21341,9 +21341,17 @@ library's @code{threading} module.")
         (base32
          "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
     (build-system python-build-system)
-    ;; FIXME: tests cannot be computed: "Can't perform this operation for
-    ;; unregistered loader type"
-    (arguments '(#:tests? #f))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+             (when tests?
+               (add-installed-pythonpath inputs outputs)
+               (invoke "python" "-m" "pytest" "--doctest-modules"
+                       "--pyargs" "toolz")))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "https://github.com/pytoolz/toolz/")
     (synopsis "List processing tools and functional utilities")
     (description
-- 
2.31.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1.
  2021-06-08 13:33 [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests Vinicius Monego
@ 2021-06-08 13:35 ` Vinicius Monego
  2021-06-08 17:18 ` bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests Leo Famulari
  1 sibling, 0 replies; 3+ messages in thread
From: Vinicius Monego @ 2021-06-08 13:35 UTC (permalink / raw)
  To: 48920; +Cc: Vinicius Monego

* gnu/packages/python-xyz.scm (python-toolz): Update to 0.11.1.
---
 gnu/packages/python-xyz.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c724357c11..3936585e5d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -21332,14 +21332,14 @@ library's @code{threading} module.")
 (define-public python-toolz
   (package
     (name "python-toolz")
-    (version "0.9.0")
+    (version "0.11.1")
     (source
      (origin
        (method url-fetch)
        (uri (pypi-uri "toolz" version))
        (sha256
         (base32
-         "1j9i7fdjnx9dz35fdj5gvgxx6585ja9sxgaiv65if77nlxz0m7wj"))))
+         "1grz3zvw5ixwqqlbv0n7j11mlcxb66cirh5i9x9zw8kqy0hpk967"))))
     (build-system python-build-system)
     (arguments
      `(#:phases
-- 
2.31.1





^ permalink raw reply related	[flat|nested] 3+ messages in thread

* bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests.
  2021-06-08 13:33 [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests Vinicius Monego
  2021-06-08 13:35 ` [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1 Vinicius Monego
@ 2021-06-08 17:18 ` Leo Famulari
  1 sibling, 0 replies; 3+ messages in thread
From: Leo Famulari @ 2021-06-08 17:18 UTC (permalink / raw)
  To: Vinicius Monego; +Cc: 48920-done

On Tue, Jun 08, 2021 at 01:33:03PM +0000, Vinicius Monego wrote:
> * gnu/packages/python-xyz.scm (python-toolz)[arguments]: Remove #:tests?.
> Override check phase.
> [native-inputs]: Add python-pytest.

Thanks! Pushed as 74c70553394e32f7b6d5fa56da3bf3b18623c70f




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-08 17:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 13:33 [bug#48920] [PATCH 1/2] gnu: python-toolz: Enable tests Vinicius Monego
2021-06-08 13:35 ` [bug#48920] [PATCH 2/2] gnu: python-toolz: Update to 0.11.1 Vinicius Monego
2021-06-08 17:18 ` bug#48920: [PATCH 1/2] gnu: python-toolz: Enable tests Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.