guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

160/285: gnu: python-pathos: Run test suite.


From: guix-commits
Subject: 160/285: gnu: python-pathos: Run test suite.
Date: Sun, 29 Dec 2019 20:44:21 -0500 (EST)

kkebreau pushed a commit to branch wip-gnome3.34
in repository guix.

commit 168ea6bd6f10f28e3dc60e45c87df947cc217176
Author: Efraim Flashner <address@hidden>
Date:   Thu Dec 26 09:38:37 2019 +0200

    gnu: python-pathos: Run test suite.
    
    * gnu/packages/python-xyz.scm (python-pathos)[arguments]: Use custom
    'check phase.
    [native-inputs]: Add python-pytest.
---
 gnu/packages/python-xyz.scm | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0f9afe6..5b8f377 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -16999,11 +16999,21 @@ essential tools are located.")
         (base32
          "0in8hxdz7k081ijn6q94gr39ycy7363sx4zysmbwyvd7snqjrbi1"))))
     (build-system python-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (replace 'check
+           (lambda _
+             (setenv "PYTHONPATH"
+                     (string-append (getcwd) ":" (getenv "PYTHONPATH")))
+             (invoke "python" "./tests/__main__.py"))))))
     (propagated-inputs
      `(("python-dill" ,python-dill)
        ("python-multiprocess" ,python-multiprocess)
        ("python-pox" ,python-pox)
        ("python-ppft" ,python-ppft)))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)))
     (home-page "https://pypi.org/project/pathos/";)
     (synopsis
      "Parallel graph management and execution in heterogeneous computing")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]