[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/12: gnu: python-nbformat: Enable tests.
From: |
guix-commits |
Subject: |
05/12: gnu: python-nbformat: Enable tests. |
Date: |
Mon, 26 Apr 2021 04:37:49 -0400 (EDT) |
lbraun pushed a commit to branch master
in repository guix.
commit 7f06ab7fc0429fa736fd77cb1ebe5a69f9909f65
Author: Lars-Dominik Braun <lars@6xq.net>
AuthorDate: Tue Apr 20 09:15:42 2021 +0200
gnu: python-nbformat: Enable tests.
* gnu/packages/python-xyz.scm (python-nbformat) [source]: Use git
repository, which has more complete test data.
[arguments]: Run pytest during 'check.
[native-inputs]: Add dependencies required to do that.
---
gnu/packages/python-xyz.scm | 30 ++++++++++++++++++++++--------
1 file changed, 22 insertions(+), 8 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 2dbbbb3..ea67dfc 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -10415,21 +10415,35 @@ drafts 04, 06 and 07.")
(package
(name "python-nbformat")
(version "5.1.3")
- (source
- (origin
- (method url-fetch)
- (uri (pypi-uri "nbformat" version))
- (sha256
- (base32
- "1j6idwsw59cslsssvlkg2bkfpvd6ri7kghbp14jwcw87sy57h5mm"))))
+ ;; The PyPi release tarball lacks some test cases and test data.
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/jupyter/nbformat.git")
+ (commit version)))
+ (sha256
+ (base32
+ "033v16cfmxzh3jn5phnil4p3silr49iwh9wiigzhv0crc6sanvwz"))
+ (file-name (git-file-name name version))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key inputs outputs tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest" "-vv")))))))
(propagated-inputs
`(("python-ipython-genutils" ,python-ipython-genutils)
("python-jsonschema" ,python-jsonschema)
("python-jupyter-core" ,python-jupyter-core)
("python-traitlets" ,python-traitlets)))
(native-inputs
- `(("python-pytest" ,python-pytest)))
+ `(("python-pytest" ,python-pytest)
+ ("python-fastjsonschema" ,python-fastjsonschema) ; This is only active
+ ; when setting NBFORMAT_VALIDATOR="fastjsonschema", so include it for
+ ; testing only.
+ ("python-testpath" ,python-testpath)))
(home-page "https://jupyter.org")
(synopsis "Jupyter Notebook format")
(description "This package provides the reference implementation of the
- branch master updated (2ff36e4 -> 2209e5c), guix-commits, 2021/04/26
- 01/12: gnu: Move search path JUPYTER_PATH., guix-commits, 2021/04/26
- 02/12: gnu: python-jupyter-core: Enable tests., guix-commits, 2021/04/26
- 05/12: gnu: python-nbformat: Enable tests.,
guix-commits <=
- 06/12: gnu: Add python-jupyter-client-bootstrap., guix-commits, 2021/04/26
- 07/12: gnu: Add python-ipykernel-bootstrap., guix-commits, 2021/04/26
- 10/12: gnu: Add python-pytest-dependency., guix-commits, 2021/04/26
- 11/12: gnu: python-nbconvert: Enable more tests., guix-commits, 2021/04/26
- 08/12: gnu: python-jupyter-client: Enable tests., guix-commits, 2021/04/26
- 03/12: gnu: Add python-json-spec., guix-commits, 2021/04/26
- 04/12: gnu: Add python-fastjsonschema., guix-commits, 2021/04/26
- 09/12: gnu: python-ipykernel: Add missing inputs., guix-commits, 2021/04/26
- 12/12: gnu: python-notebook: Fix tests., guix-commits, 2021/04/26