summary refs log tree commit diff
diff options
context:
space:
mode:
authorMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-01-24 00:21:58 -0500
committerMaxim Cournoyer <maxim.cournoyer@gmail.com>2021-02-01 11:53:52 -0500
commitd142c15b4f4cf14e0313d7e3a8291fa3f84bae3d (patch)
tree72b16cd2a50a4c36f5b09e4a268f18acc9be8fbb
parentcbb9fab20f1c5b525d7587b65d7d6163bfe1a9a0 (diff)
downloadguix-d142c15b4f4cf14e0313d7e3a8291fa3f84bae3d.tar.gz
gnu: python-attrs: Do not set PYTHONPATH.
* gnu/packages/python-xyz.scm (python-attrs)
[arguments]: Remove the '#:modules' argument.
[phases]{check}: Do not set PYTHONPATH.
-rw-r--r--gnu/packages/python-xyz.scm17
1 files changed, 2 insertions, 15 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index b03fcf0b71..07edee7459 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -15137,23 +15137,10 @@ and bit flag values.")
                 "0wky4h28n7xnr6xv69p9z6kv8bzn50d10c3drmd9ds8gawbcxdzp"))))
     (build-system python-build-system)
     (arguments
-     `(#:modules ((guix build utils)
-                  (guix build python-build-system)
-                  (ice-9 ftw)
-                  (srfi srfi-1)
-                  (srfi srfi-26))
-       #:phases (modify-phases %standard-phases
+     `(#:phases (modify-phases %standard-phases
                   (replace 'check
                     (lambda _
-                      (let ((cwd (getcwd)))
-                        (setenv "PYTHONPATH"
-                                (string-append
-                                 cwd "/build/"
-                                 (find (cut string-prefix? "lib" <>)
-                                       (scandir (string-append cwd "/build")))
-                                 ":"
-                                 (getenv "PYTHONPATH")))
-                        (invoke "python" "-m" "pytest")))))))
+                      (invoke "pytest"))))))
     (native-inputs
      `(("python-coverage" ,python-coverage)
        ("python-hypothesis" ,python-hypothesis)