Subject: bug#33762: closed (gnu: python-pyelftools: Fix tests with python 3.7.)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 16 Dec 2018 09:57:02 +0000

Your bug report

#33762: gnu: python-pyelftools: Fix tests with python 3.7.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
33762: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=33762
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: gnu: python-pyelftools: Fix tests with python 3.7.
From: Efraim Flashner <[email-masked]>
To: [email-masked]
Date: Sun, 16 Dec 2018 11:56:47 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Pushed with minor changes as 9f23f6bc2f74957ab9832c973647b754448796a2

-- 
Efraim Flashner   <[email-masked]>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Subject: gnu: python-pyelftools: Fix tests with python 3.7.
From: Vagrant Cascadian <[email-masked]>
To: [email-masked]
Date: Sat, 15 Dec 2018 23:23:41 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/python.scm (python-pyelftools)
  [native-inputs]: Remove python-setuptools.
  [arguments]: Add set-pythonpath phase.
---
 gnu/packages/python.scm | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 23b980ec3..cb40ce01d 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -10627,9 +10627,16 @@ useful as a validator for JSON data.")
         (base32
          "090vdksbz341f7ljvr0zswblw4lspa8qaiikzyjkf318arpxmil9"))))
     (build-system python-build-system)
-    ;; Test suite requires python-setuptools
-    (native-inputs
-     `(("python-setuptools" ,python-setuptools)))
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-pythonpath
+           (lambda* (#:key inputs #:allow-other-keys)
+             (setenv "PYTHONPATH"
+                     (string-append
+                      (getcwd) "/test/"
+                      ":" (getenv "PYTHONPATH")))
+             #t)))))
     (home-page
      "https://github.com/eliben/pyelftools")
     (synopsis
-- 
2.20.0