[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/08: gnu: python-cffi: Really enable tests.
From: |
Marius Bakke |
Subject: |
03/08: gnu: python-cffi: Really enable tests. |
Date: |
Mon, 3 Jul 2017 20:53:02 -0400 (EDT) |
mbakke pushed a commit to branch master
in repository guix.
commit 295f32f34b45d4df6c06d241d0ac1572ff5ed4cc
Author: Marius Bakke <address@hidden>
Date: Sat Jul 1 21:48:06 2017 +0200
gnu: python-cffi: Really enable tests.
* gnu/packages/python.scm (python-cffi, python2-cffi)[arguments]: Replace
'check' phase with custom expression. Change to 'modify-phases' syntax.
---
gnu/packages/python.scm | 38 +++++++++++++++++++++++++-------------
1 file changed, 25 insertions(+), 13 deletions(-)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 3e71a23..a55cdaf 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4781,19 +4781,31 @@ a front-end for C compilers or analysis tools.")
("python-sphinx" ,python-sphinx)
("python-pytest" ,python-pytest)))
(arguments
- `(#:phases
- (alist-cons-after
- 'install 'install-doc
- (lambda* (#:key outputs #:allow-other-keys)
- (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
- (doc (string-append data "/doc/" ,name "-" ,version))
- (html (string-append doc "/html")))
- (with-directory-excursion "doc"
- (system* "make" "html")
- (mkdir-p html)
- (copy-recursively "build/html" html))
- (copy-file "LICENSE" (string-append doc "/LICENSE"))))
- %standard-phases)))
+ `(#:modules ((ice-9 ftw)
+ (srfi srfi-26)
+ (guix build utils)
+ (guix build python-build-system))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (setenv "PYTHONPATH"
+ (string-append
+ (getenv "PYTHONPATH")
+ ":" (getcwd) "/build/"
+ (car (scandir "build" (cut string-prefix? "lib." <>)))))
+ (zero? (system* "py.test" "-v"))))
+ (add-after 'install 'install-doc
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((data (string-append (assoc-ref outputs "doc") "/share"))
+ (doc (string-append data "/doc/" ,name "-" ,version))
+ (html (string-append doc "/html")))
+ (with-directory-excursion "doc"
+ (system* "make" "html")
+ (mkdir-p html)
+ (copy-recursively "build/html" html))
+ (copy-file "LICENSE" (string-append doc "/LICENSE"))
+ #t))))))
(home-page "http://cffi.readthedocs.org")
(synopsis "Foreign function interface for Python")
(description
- branch master updated (f88eacc -> a8a964d), Marius Bakke, 2017/07/03
- 02/08: gnu: re2: Update to 2017-07-01., Marius Bakke, 2017/07/03
- 01/08: install: Drop redundant package after c0f5eee4b2cc737be222c4ba331d0., Marius Bakke, 2017/07/03
- 03/08: gnu: python-cffi: Really enable tests.,
Marius Bakke <=
- 04/08: gnu: python-cffi: Update to 1.10.0., Marius Bakke, 2017/07/03
- 05/08: gnu: python-cryptography: Update to 1.9., Marius Bakke, 2017/07/03
- 08/08: gnu: python-pylint: Update to 1.7.2., Marius Bakke, 2017/07/03
- 06/08: gnu: python-pyopenssl: Update to 17.1.0., Marius Bakke, 2017/07/03
- 07/08: gnu: python-astroid: Update to 1.5.3., Marius Bakke, 2017/07/03