From 7dd55dfecad00cadb91e6efe09a442cdfc51798d Mon Sep 17 00:00:00 2001 From: Efraim Flashner Date: Sat, 29 Oct 2016 22:54:43 +0300 Subject: gnu: python-waf: Update to 1.9.5. * gnu/packages/python.scm (python-waf): Update to 1.9.5. [arguments]: Shorten custom build phase. [source]: Use http. [home-page]: Use http. --- gnu/packages/python.scm | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f7485ad014..45e683c009 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -5236,30 +5236,28 @@ connection to each user.") (define-public python-waf (package (name "python-waf") - (version "1.9.1") + (version "1.9.5") (source (origin (method url-fetch) - (uri (string-append "https://waf.io/" + (uri (string-append "http://waf.io/" "waf-" version ".tar.bz2")) (sha256 (base32 - "1nc4qaqx2vsanlpp9mcwvf91xjqpkvcc6fcxd5sb4fwvaxamw5v6")))) + "1sl3ipi2czds57rlzjnpdzqa0skx8asfvmh3qmibpvdwf15rpppg")))) (build-system python-build-system) (arguments '(#:phases (modify-phases %standard-phases (replace 'build - (lambda _ - (zero? (begin - (system* "python" "waf-light" "configure") - (system* "python" "waf-light" "build"))))) + (lambda _ + (zero? (system* "python" "waf-light" "configure" "build")))) (replace 'check - (lambda _ - (zero? (system* "python" "waf" "--version")))) + (lambda _ + (zero? (system* "python" "waf" "--version")))) (replace 'install - (lambda _ - (copy-file "waf" %output)))))) - (home-page "https://waf.io/") + (lambda _ + (copy-file "waf" %output)))))) + (home-page "http://waf.io/") (synopsis "Python-based build system") (description "Waf is a Python-based framework for configuring, compiling and installing -- cgit v1.3 From ee5fb7ee5013a9033fc572d8c7cfec7047b58c33 Mon Sep 17 00:00:00 2001 From: Alex Vong Date: Sat, 29 Oct 2016 18:10:00 +0800 Subject: gnu: Add python2-rpython. * gnu/packages/python.scm (python2-rpython): New variable. --- gnu/packages/python.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 45e683c009..f05690617a 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -29,6 +29,7 @@ ;;; Copyright © 2016 Marius Bakke ;;; Copyright © 2016 Stefan Reichoer ;;; Copyright © 2016 Dylan Jeffers +;;; Copyright © 2016 Alex Vong ;;; ;;; This file is part of GNU Guix. ;;; @@ -3150,6 +3151,30 @@ writing C extensions for Python as easy as Python itself.") (inputs `(("python-2" ,python-2))))) ; this is not automatically changed +;; The RPython toolchain currently does not support Python 3. +(define-public python2-rpython + (package + (name "python2-rpython") + (version "0.1.4") + (source + (origin + (method url-fetch) + (uri (pypi-uri "rpython" version)) + (sha256 + (base32 + "07pps06fq4c4wmi5ii0sgh9zgwniz5y7frqhm28g3a154l163fxc")))) + (build-system python-build-system) + (arguments `(#:python ,python-2)) + (native-inputs + `(("python2-pytest" ,python2-pytest) ; needed for running tests + ("python2-setuptools" ,python2-setuptools))) + (home-page "https://rpython.readthedocs.org") + (synopsis "Framework for implementing interpreters and virtual machines") + (description "RPython is a translation and support framework for +producing implementations of dynamic languages, emphasizing a clean separation +between language specification and implementation aspects.") + (license license:expat))) + ;; This version of numpy is missing the documentation and is only used to ;; build matplotlib which is required to build numpy's documentation. (define python-numpy-bootstrap -- cgit v1.3 From 10797a0ae0b57502ca3c4c8d98c6f0e062aacf8f Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 29 Oct 2016 21:05:15 -0400 Subject: gnu: python-publicsuffix2: Disable the test suite. The tests were silently skipped with Python 3.4. With Python 3.5, this caused the build of python-publicsuffix2 to fail. * gnu/packages/python.scm (python-publicsuffix2, python2-publicsuffix2) [arguments]: Disable the tests. --- gnu/packages/python.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index f05690617a..a25d3bca4c 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10618,6 +10618,8 @@ List.") (base32 "06lx603gdwad5hc3hmn763ngq0rq9bzz1ni3ga72nzk5n872arkd")))) (build-system python-build-system) + (arguments + '(#:tests? #f)) ; The test suite requires network access. (home-page "https://github.com/pombredanne/python-publicsuffix2") (synopsis "Get a public suffix for a domain name using the Public Suffix List") (description "Get a public suffix for a domain name using the Public Suffix -- cgit v1.3 From bae187105907a1fe94fb2f6a661920299b9cd877 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 29 Oct 2016 21:08:30 -0400 Subject: gnu: python-prompt-toolkit: Disable the test suite. The tests were silently skipped with Python 3.4. With Python 3.5, this caused the build of python-prompt-toolkit to fail. * gnu/packages/python.scm (python-prompt-toolkit, python2-prompt-toolkit)[arguments]: Disable the tests. --- gnu/packages/python.scm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index a25d3bca4c..55efd4d4c0 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -10151,6 +10151,8 @@ implementation for Python.") (base32 "1vyjd0b7wciv55i19l44zy0adx8q7ss79lhy2r9d1rwz2y4822zg")))) (build-system python-build-system) + (arguments + '(#:tests? #f)) ; The test suite uses some Windows-specific data types. (inputs `(("python-wcwidth" ,python-wcwidth) ("python-pygments" ,python-pygments))) (native-inputs `(("python-six" ,python-six))) -- cgit v1.3 From 329b4b3b69380b232129fcd65f9f41c195aa336d Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 29 Oct 2016 21:32:55 -0400 Subject: gnu: Add python-pyev. * gnu/packages/python.scm (python-pyev, python2-pyev): New variables. --- gnu/packages/python.scm | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 55efd4d4c0..dcc72b33d2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -11376,3 +11376,36 @@ useful as a validator for JSON data.") (description "This package adds SQLAlchemy support to your Flask application.") (license license:bsd-3))) + +(define-public python-pyev + (package + (name "python-pyev") + (version "0.9.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "pyev" version)) + (sha256 + (base32 + "0rf603lc0s6zpa1nb25vhd8g4y337wg2wyz56i0agsdh7jchl0sx")))) + (build-system python-build-system) + (arguments + `(#:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda* (#:key inputs #:allow-other-keys) + (let ((libev (string-append (assoc-ref inputs "libev") + "/lib/libev.so.4"))) + (substitute* "setup.py" + (("libev_dll_name = find_library\\(\\\"ev\\\"\\)") + (string-append "libev_dll_name = \"" libev "\""))))))))) + (inputs + `(("libev" ,libev))) + (home-page "http://pythonhosted.org/pyev/") + (synopsis "Python libev interface") + (description "Pyev provides a Python interface to libev.") + (license license:gpl3))) + +(define-public python2-pyev + (package-with-python2 python-pyev)) -- cgit v1.3 From 269d9172ff037bd41bee3777166b3bc14d93f745 Mon Sep 17 00:00:00 2001 From: Leo Famulari Date: Sat, 29 Oct 2016 21:34:32 -0400 Subject: gnu: python-pika: Add inputs for test suite. * gnu/packages/python.scm (python-pika, python2-pika)[native-inputs]: Add python-pyev, python-tornado. --- gnu/packages/python.scm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index dcc72b33d2..7cfbd997d8 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -9589,7 +9589,9 @@ focus on event-based network programming and multiprotocol integration.") "0nb4h08di432lv7dy2v9kpwgk0w92f24sqc2hw2s9vwr5b8v8xvj")))) (build-system python-build-system) (native-inputs - `(("python-twisted" ,python-twisted))) + `(("python-pyev" ,python-pyev) + ("python-tornado" ,python-tornado) + ("python-twisted" ,python-twisted))) (home-page "https://pika.readthedocs.org") (synopsis "Pure Python AMQP Client Library") (description -- cgit v1.3