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.
This commit is contained in:
Marius Bakke 2018-02-28 05:04:26 +01:00
parent 0075644662
commit 2441239842
No known key found for this signature in database
GPG Key ID: A2A06DF2A33A54FA
1 changed files with 20 additions and 0 deletions

View File

@ -5840,6 +5840,26 @@ should be stored on various operating systems.")
(base32 (base32
"1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f")))) "1hz2dba1nvvn52afg34liijsm7kn65cmn06dl0xbwld6bb4cis0f"))))
(build-system python-build-system) (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") (synopsis "MessagePack (de)serializer")
(description "MessagePack is a fast, compact binary serialization format, (description "MessagePack is a fast, compact binary serialization format,
suitable for similar data to JSON. This package provides CPython bindings for suitable for similar data to JSON. This package provides CPython bindings for