GNU bug report logs - #42564
[PATCH] gnu: Add python-nbval.

Previous Next

Package: guix-patches;

Reported by: Vinicius Monego <monego <at> posteo.net>

Date: Mon, 27 Jul 2020 20:43:02 UTC

Severity: normal

Tags: patch

Done: Oleg Pykhalov <go.wigust <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 42564 in the body.
You can then email your comments to 42564 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#42564; Package guix-patches. (Mon, 27 Jul 2020 20:43:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Vinicius Monego <monego <at> posteo.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 27 Jul 2020 20:43:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Vinicius Monego <monego <at> posteo.net>
To: guix-patches <at> gnu.org
Cc: Vinicius Monego <monego <at> posteo.net>
Subject: [PATCH] gnu: Add python-nbval.
Date: Mon, 27 Jul 2020 17:42:06 -0300
* gnu/packages/python-check.scm (python-nbval): New variable.
---
 gnu/packages/python-check.scm | 47 +++++++++++++++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
index e96ce9e666..cf765e8106 100644
--- a/gnu/packages/python-check.scm
+++ b/gnu/packages/python-check.scm
@@ -650,6 +650,53 @@ service processes for your tests with pytest.")
     (description "This package provides a pytest plugin for aiohttp support.")
     (license license:asl2.0)))
 
+(define-public python-nbval
+  (package
+    (name "python-nbval")
+    (version "0.9.5")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (pypi-uri "nbval" version))
+       (sha256
+        (base32 "1xh2p7g5s5g06caaraf3dsz69bpj7dgw2h3ss67kci789aspnwp8"))))
+    (build-system python-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'fix-test
+           (lambda _
+             ;; This test fails because of a mismatch in the output of LaTeX
+             ;; equation environments.  Seems OK to skip.
+             (delete-file "tests/ipynb-test-samples/test-latex-pass-correctouput.ipynb")
+             #t))
+         (replace 'check
+           (lambda* (#:key inputs outputs #:allow-other-keys)
+             (add-installed-pythonpath inputs outputs)
+             (invoke "pytest" "-vv" "-k"
+                     (string-append
+                     ;; This only works with Pytest < 5.
+                      "not nbdime_reporter"
+                     ;; https://github.com/computationalmodelling/nbval/pull/148.
+                      " and not test_timeouts")))))))
+    (native-inputs
+     `(("python-pytest" ,python-pytest)
+       ("python-pytest-cov" ,python-pytest-cov)
+       ("python-sympy" ,python-sympy)))
+    (propagated-inputs
+     `(("python-ipykernel" ,python-ipykernel)
+       ("python-jupyter-client" ,python-jupyter-client)
+       ("python-nbformat" ,python-nbformat)
+       ("python-six" ,python-six)))
+    (home-page "https://github.com/computationalmodelling/nbval")
+    (synopsis "Pytest plugin to validate Jupyter notebooks")
+    (description
+     "This plugin adds functionality to Pytest to recognise and collect Jupyter
+notebooks.  The intended purpose of the tests is to determine whether execution
+of the stored inputs match the stored outputs of the @file{.ipynb} file.  Whilst
+also ensuring that the notebooks are running without errors.")
+    (license license:bsd-3)))
+
 (define-public python-pytest-flask
   (package
     (name "python-pytest-flask")
-- 
2.20.1





Reply sent to Oleg Pykhalov <go.wigust <at> gmail.com>:
You have taken responsibility. (Wed, 29 Jul 2020 05:18:02 GMT) Full text and rfc822 format available.

Notification sent to Vinicius Monego <monego <at> posteo.net>:
bug acknowledged by developer. (Wed, 29 Jul 2020 05:18:02 GMT) Full text and rfc822 format available.

Message #10 received at 42564-done <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: Vinicius Monego <monego <at> posteo.net>
Cc: 42564-done <at> debbugs.gnu.org
Subject: Re: [bug#42564] [PATCH] gnu: Add python-nbval.
Date: Wed, 29 Jul 2020 08:17:18 +0300
[Message part 1 (text/plain, inline)]
Hi,

Vinicius Monego <monego <at> posteo.net> writes:

> * gnu/packages/python-check.scm (python-nbval): New variable.
> ---
>  gnu/packages/python-check.scm | 47 +++++++++++++++++++++++++++++++++++
>  1 file changed, 47 insertions(+)
>
> diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm
> index e96ce9e666..cf765e8106 100644
> --- a/gnu/packages/python-check.scm
> +++ b/gnu/packages/python-check.scm
> @@ -650,6 +650,53 @@ service processes for your tests with pytest.")

[…]

Pushed to master.

Thanks,
Oleg.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 26 Aug 2020 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 3 years and 237 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.