[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
30/37: gnu: python-msgpack: Run the tests.
From: |
Marius Bakke |
Subject: |
30/37: gnu: python-msgpack: Run the tests. |
Date: |
Wed, 28 Feb 2018 10:33:55 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit 2441239842fa6f786008e8c75651342b2c0172d2
Author: Marius Bakke <address@hidden>
Date: Wed Feb 28 05:04:26 2018 +0100
gnu: python-msgpack: Run the tests.
* gnu/packages/python.scm (python-msgpack)[arguments]: Add #:modules.
Replace
CHECK-PHASE with pytest invocation.
[native-inputs]: Add PYTHON-PYTEST.
---
gnu/packages/python.scm | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index 32fcea4..80ea4ca 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -5840,6 +5840,26 @@ should be stored on various operating systems.")
(base32
"1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
(build-system python-build-system)
+ (arguments
+ `(#:modules ((guix build utils)
+ (guix build python-build-system)
+ (ice-9 ftw)
+ (srfi srfi-1)
+ (srfi srfi-26))
+ #:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda _
+ (let ((cwd (getcwd)))
+ (setenv "PYTHONPATH"
+ (string-append cwd "/build/"
+ (find (cut string-prefix? "lib" <>)
+ (scandir (string-append cwd
"/build")))
+ ":"
+ (getenv "PYTHONPATH")))
+ (invoke "pytest" "-v" "test")))))))
+ (native-inputs
+ `(("python-pytest" ,python-pytest)))
(synopsis "MessagePack (de)serializer")
(description "MessagePack is a fast, compact binary serialization format,
suitable for similar data to JSON. This package provides CPython bindings for
- 02/37: gnu: python-subunit: Update to 1.2.0., (continued)
- 02/37: gnu: python-subunit: Update to 1.2.0., Marius Bakke, 2018/02/28
- 18/37: gnu: python-stevedore: Update to 1.28.0., Marius Bakke, 2018/02/28
- 22/37: gnu: python-oslo.i18n: Update to 3.19.0., Marius Bakke, 2018/02/28
- 25/37: gnu: python-oslo.utils: Update to 3.35.0., Marius Bakke, 2018/02/28
- 24/37: gnu: python-oslo.config: Update to 5.2.0., Marius Bakke, 2018/02/28
- 11/37: gnu: Add python-openstackdocstheme., Marius Bakke, 2018/02/28
- 37/37: gnu: python-webencodings: Update to 0.5.1., Marius Bakke, 2018/02/28
- 27/37: gnu: python-oslo.context: Update to 2.20.0., Marius Bakke, 2018/02/28
- 12/37: gnu: python-mox3: Update to 0.24.0., Marius Bakke, 2018/02/28
- 20/37: gnu: Add python-gitpython., Marius Bakke, 2018/02/28
- 30/37: gnu: python-msgpack: Run the tests.,
Marius Bakke <=
- 35/37: gnu: python-netifaces: Update to 0.10.6., Marius Bakke, 2018/02/28
- 17/37: gnu: Add python-rfc3986., Marius Bakke, 2018/02/28
- 28/37: gnu: python-oslo.serialization: Update to 2.24.0., Marius Bakke, 2018/02/28
- 26/37: gnu: Add python-pyinotify., Marius Bakke, 2018/02/28
- 23/37: gnu: python-debtcollector: Update to 1.19.0., Marius Bakke, 2018/02/28
- 21/37: gnu: python-bandit: Update to 1.4.0., Marius Bakke, 2018/02/28
- 36/37: gnu: python-html5lib: Update to 1.0.1., Marius Bakke, 2018/02/28
- 32/37: gnu: python-oslo.log: Update to 3.36.0., Marius Bakke, 2018/02/28
- 29/37: gnu: python-msgpack: Update to 0.5.6., Marius Bakke, 2018/02/28
- 31/37: gnu: python-monotonic: Update to 1.4., Marius Bakke, 2018/02/28