From 247d4e7271dd599f454bf82fc50cf13ecf70532c Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Mon, 13 Aug 2018 00:49:03 +0200 Subject: gnu: python-pep8: Use HTTPS home page. Also add a comment about 1.7.1. This doesn't warrant a changelog entry, so you never read this. * gnu/packages/python.scm (python-pep8)[home-page]: Use HTTPS. --- gnu/packages/python.scm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 8a3bfacdd7..2383a61172 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5573,6 +5573,9 @@ applications.") (package-with-python2 python-pyzmq)) (define-public python-pep8 + ;; This package has been renamed to ‘pycodestyle’ and is no longer updated. + ;; Its last release (1.7.1) adds only a scary warning to this effect, breaking + ;; some dependents' test suites, and nothing more. (package (name "python-pep8") (version "1.7.0") @@ -5584,7 +5587,7 @@ applications.") (base32 "002rkl4lsn6x2mxmf8ar00l0m8i3mzrc6pnzz77blyksmpsxa4x1")))) (build-system python-build-system) - (home-page "http://pep8.readthedocs.org/") + (home-page "https://pep8.readthedocs.org/") (synopsis "Python style guide checker") (description "This tools checks Python code against some of the style conventions in -- cgit v1.2.3 From a1c86d1db4ba329de6dbbe480b3b9061c5c33a4d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Wed, 15 Aug 2018 15:49:34 +0200 Subject: gnu: python-txamqp: Update to 0.8.2. * gnu/packages/python.scm (python-txamqp): Update to 0.8.2. --- 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 2383a61172..a6891a20be 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -8042,14 +8042,14 @@ alternative when librabbitmq is not available.") (define-public python-txamqp (package (name "python-txamqp") - (version "0.8.0") + (version "0.8.2") (source (origin (method url-fetch) (uri (pypi-uri "txAMQP" version)) (sha256 (base32 - "1r43a66dd547mz40ikymm8y3d480cidy560fj81qc0jk4lncgmmr")))) + "0jd9864k3csc06kipiwzjlk9mq4054s8kzk5q1cfnxj8572s4iv4")))) (build-system python-build-system) (propagated-inputs `(("python-six" ,python-six) -- cgit v1.2.3 From e9e9783e0ab78039a71515ea632314a4f44d1306 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 31 Jul 2018 13:20:26 +0200 Subject: gnu: Add python-argparse-manpage. * gnu/packages/python.scm (python-argparse-manpage): New variable. --- gnu/packages/python.scm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a6891a20be..3db29e23f1 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -7224,6 +7224,25 @@ be set via config files and/or environment variables.") (define-public python2-configargparse (package-with-python2 python-configargparse)) +(define-public python-argparse-manpage + (package + (name "python-argparse-manpage") + (version "1.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "argparse-manpage" version)) + (sha256 + (base32 + "0blh31zns68anina9lba5wh81d1414s97p60zw5l0d0shhh0wj5p")))) + (build-system python-build-system) + (home-page "https://github.com/praiskup/argparse-manpage") + (synopsis "Build manual page from Python's ArgumentParser object") + (description + "This package provides tools to build manual pages from Python's +@code{ArgumentParser} object.") + (license license:asl2.0))) + (define-public python-contextlib2 (package (name "python-contextlib2") -- cgit v1.2.3 From 37d203985e2817b0962129384e8b993a1bb92de9 Mon Sep 17 00:00:00 2001 From: Marius Bakke Date: Thu, 16 Aug 2018 19:00:49 +0200 Subject: gnu: python-cython: Disable tests that fail on armhf. * gnu/packages/python.scm (python-cython)[arguments]: On armhf-linux, add phase to disable two tests. --- gnu/packages/python.scm | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 1d718bf228..fa5d3f5c54 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2845,6 +2845,24 @@ and is very extensible.") (add-before 'check 'set-HOME ;; some tests require access to "$HOME/.cython" (lambda _ (setenv "HOME" "/tmp") #t)) + + ;; FIXME: These tests started failing on armhf after the 0.28 update + ;; (commit c69d11c5930), both with an error such as this: + ;; compiling (cpp) and running dictcomp ... + ;; === C/C++ compiler error output: === + ;; ‘ + ;; dictcomp.cpp:5221: confused by earlier errors, bailing out + ;; See for logs. + ,@(if (target-arm32?) + `((add-before 'check 'disable-failing-tests + (lambda _ + (let ((disabled-tests (open-file "tests/bugs.txt" "a"))) + (for-each (lambda (test) + (format disabled-tests "~a\n" test)) + '("memslice" "dictcomp")) + (close-port disabled-tests))))) + '()) + (replace 'check (lambda _ (invoke "python" "runtests.py" "-vv")))))) (home-page "http://cython.org/") -- cgit v1.2.3 From 52773e5cf431e0de709bc3164200df9d443af12f Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 19 Aug 2018 20:54:47 +0200 Subject: gnu: python-py: Use HTTPS home page. * gnu/packages/python.scm (python-py)[home-page]: Use HTTPS. --- gnu/packages/python.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 730faf4557..b3062598b9 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -1765,7 +1765,7 @@ matching them against a list of media-ranges.") ;; Expected '/tmp/guix-build-python-py-1.4.31.drv-0/py-1.4.31/py'. ;; Is this module globally installed?" '(#:tests? #f)) - (home-page "http://pylib.readthedocs.io/") + (home-page "https://pylib.readthedocs.io/") (synopsis "Python library for parsing, I/O, instrospection, and logging") (description "Py is a Python library for file name parsing, .ini file parsing, I/O, -- cgit v1.2.3 From db09a450d2b978cd721d3740f81a46ee634da69d Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 21 Aug 2018 03:15:21 +0200 Subject: gnu: python-rpy2: Update home page. * gnu/packages/python.scm (python-rpy2)[home-page]: Update URI. --- gnu/packages/python.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index b3062598b9..90e93d00f2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3722,7 +3722,7 @@ operators such as union, intersection, and difference.") ("python-numpy" ,python-numpy))) (native-inputs `(("zlib" ,zlib))) - (home-page "http://rpy.sourceforge.net/") + (home-page "https://rpy2.bitbucket.io/") (synopsis "Python interface to the R language") (description "rpy2 is a redesign and rewrite of rpy. It is providing a low-level interface to R from Python, a proposed high-level interface, -- cgit v1.2.3 From 20b5b9738182c30ed907139e5bec8c88c7e0a8ec Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Tue, 21 Aug 2018 03:16:06 +0200 Subject: gnu: python-rpy2: Update to 2.9.4. * gnu/packages/python.scm (python-rpy2): Update to 2.9.4. [arguments]: Remove obsolete phases and substitute INVOKE for SYSTEM* now that we can. --- gnu/packages/python.scm | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 90e93d00f2..39d8931c13 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -3669,14 +3669,14 @@ operators such as union, intersection, and difference.") (define-public python-rpy2 (package (name "python-rpy2") - (version "2.9.0") + (version "2.9.4") (source (origin (method url-fetch) (uri (pypi-uri "rpy2" version)) (sha256 (base32 - "0bqihjrdqwj5r1h86shvfb1p5hfr4a6klv1v54bzfr9r144w3rni")))) + "0bl1d2qhavmlrvalir9hmkjh74w21vzkvc2sg3cbb162s10zfmxy")))) (build-system python-build-system) (arguments '(#:modules ((ice-9 ftw) @@ -3686,14 +3686,6 @@ operators such as union, intersection, and difference.") (guix build python-build-system)) #:phases (modify-phases %standard-phases - ;; Without this phase the test loader cannot find the directories, in - ;; which it is supposed to look for test files. - (add-after 'unpack 'fix-tests - (lambda* (#:key outputs #:allow-other-keys) - (substitute* "rpy/tests.py" - (("loader.discover\\(") - "loader.discover(rpy_root + '/' +")) - #t)) (replace 'check (lambda* (#:key outputs inputs #:allow-other-keys) (let ((cwd (getcwd))) @@ -3703,8 +3695,7 @@ operators such as union, intersection, and difference.") (scandir (string-append cwd "/build"))) ":" (getenv "PYTHONPATH")))) - ;; FIXME: Even when all tests pass, the check phase will fail. - (system* "python" "-m" "rpy2.tests" "-v")))))) + (invoke "python" "-m" "rpy2.tests" "-v")))))) (propagated-inputs `(("python-six" ,python-six) ("python-jinja2" ,python-jinja2) -- cgit v1.2.3 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.2.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.2.3