From 5fab62527cda73268cade815ba45e86cc530313b Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Wed, 22 Aug 2018 17:41:26 +0100 Subject: gnu: python-pkgconfig: Update to 1.3.1. * gnu/packages/python.scm (python-pkgconfig): Update to 1.3.1. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 39d8931c13..c0ad85cf20 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8667,14 +8667,14 @@ CloudFront content delivery network.") (define-public python-pkgconfig (package (name "python-pkgconfig") - (version "1.1.0") + (version "1.3.1") (source (origin (method url-fetch) (uri (pypi-uri "pkgconfig" version)) (sha256 (base32 - "1pw0kmvc57sjmaxi6c54fqsnihqj6hvhc9y1vaz36axafzqam7bh")))) + "107x2wmchlch8saixb488cgjz9n6inl38wi7nxkb942rbaapxiqb")))) (build-system python-build-system) (native-inputs `(("python-nose" ,python-nose))) -- cgit v1.3 From 414f620fbbba353986b2ecdb6274e35a53950323 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Wed, 22 Aug 2018 17:41:27 +0100 Subject: gnu: python-pkgconfig: Enable tests. * gnu/packages/python.scm (python-pkgconfig)[arguments]: Replace 'check' phase. Signed-off-by: Leo Famulari --- gnu/packages/python.scm | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index c0ad85cf20..3c46102da1 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 -- cgit v1.3