guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: python-pkgconfig: Enable tests.


From: Leo Famulari
Subject: 02/02: gnu: python-pkgconfig: Enable tests.
Date: Wed, 22 Aug 2018 15:14:06 -0400 (EDT)

lfam pushed a commit to branch master
in repository guix.

commit 414f620fbbba353986b2ecdb6274e35a53950323
Author: Paul Garlick <address@hidden>
Date:   Wed Aug 22 17:41:27 2018 +0100

    gnu: python-pkgconfig: Enable tests.
    
    * gnu/packages/python.scm (python-pkgconfig)[arguments]: Replace 'check' 
phase.
    
    Signed-off-by: Leo Famulari <address@hidden>
---
 gnu/packages/python.scm | 23 +++++++++++------------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index c0ad85c..3c46102 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -8681,19 +8681,18 @@ CloudFront content delivery network.")
     (inputs
       `(("pkg-config" ,pkg-config)))
     (arguments
-      `(;; Tests fail with "ValueError: _type_ 'v' not supported" on Python 3,
-        ;; and on Python 2 they need the dl module deprecated since Python 2.6.
-        #:tests? #f
-        ;; Hard-code the path to pkg-config.
-        #:phases
+      `(#:phases
         (modify-phases %standard-phases
-          (add-before
-           'build 'patch
-           (lambda _
-             (substitute* "pkgconfig/pkgconfig.py"
-               (("cmd = 'pkg-config")
-                (string-append "cmd = '" (which "pkg-config"))))
-             #t)))))
+          (add-before 'build 'patch
+            ;; Hard-code the path to pkg-config.
+            (lambda _
+              (substitute* "pkgconfig/pkgconfig.py"
+                (("cmd = 'pkg-config")
+                 (string-append "cmd = '" (which "pkg-config"))))
+              #t))
+          (replace 'check
+            (lambda _
+              (invoke "nosetests" "test.py"))))))
     (home-page "https://github.com/matze/pkgconfig";)
     (synopsis "Python interface for pkg-config")
     (description "This module provides a Python interface to pkg-config.  It



reply via email to

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