From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id 2MxDA2A8H18SEAAA0tVLHw (envelope-from ) for ; Mon, 27 Jul 2020 20:43:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cLiSOl88H19gGgAAbx9fmQ (envelope-from ) for ; Mon, 27 Jul 2020 20:43:11 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3B8939403EE for ; Mon, 27 Jul 2020 20:43:11 +0000 (UTC) Received: from localhost ([::1]:33254 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k09xk-0001Lb-Tt for larch@yhetil.org; Mon, 27 Jul 2020 16:43:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k09xe-0001LJ-Qz for guix-patches@gnu.org; Mon, 27 Jul 2020 16:43:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44280) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k09xe-0003QR-IN for guix-patches@gnu.org; Mon, 27 Jul 2020 16:43:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1k09xe-0004Qz-Gz for guix-patches@gnu.org; Mon, 27 Jul 2020 16:43:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42564] [PATCH] gnu: Add python-nbval. Resent-From: Vinicius Monego Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Jul 2020 20:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 42564 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42564@debbugs.gnu.org Cc: Vinicius Monego X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.159588256217010 (code B ref -1); Mon, 27 Jul 2020 20:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jul 2020 20:42:42 +0000 Received: from localhost ([127.0.0.1]:55824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k09xK-0004QH-Fl for submit@debbugs.gnu.org; Mon, 27 Jul 2020 16:42:42 -0400 Received: from lists.gnu.org ([209.51.188.17]:35722) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1k09xH-0004Q9-5r for submit@debbugs.gnu.org; Mon, 27 Jul 2020 16:42:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60538) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k09xG-0001Jh-Ur for guix-patches@gnu.org; Mon, 27 Jul 2020 16:42:38 -0400 Received: from mout02.posteo.de ([185.67.36.66]:54719) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k09xE-0003Og-Ay for guix-patches@gnu.org; Mon, 27 Jul 2020 16:42:38 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B1A412400FB for ; Mon, 27 Jul 2020 22:42:32 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1595882552; bh=IQzo54sVPKb5aex0XIaLiu+K9l3rP8gzpWRi7NYsQD8=; h=From:To:Cc:Subject:Date:From; b=BpxtB+u9AVNhwpWW9w2kIAnTrGM5Zn5/cw8mVTDwOUTT43xFCGsDl+TH2DxyTmqEm 75GqpJ4yhnlaiv2Lv8Ri+ao2px+Dilf2qZ54/CD5d9zUtmkYQLAkTxLvnneKvOI0Xr Izv3bgJS6rqmRbN5bGbyumTQy0S664dekMRz9LipsZUOhoVV3kSpjNR0ENz+yHe/jJ coisD0fFWOuK7d4Y+pLTYjhjJJ0xwtDfbr+eaPJQoXgJmaudzF3ZQS8i2IPj+0KKFd Nd6F4qnCCIi0PC99Ftrak+SHokPkXjacwl4G/vBQ/eay/PRCDt/8y6vCnvuUGeGLhe 1dEJ2uLWDFrIg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4BFsF30WtCz6tm9; Mon, 27 Jul 2020 22:42:30 +0200 (CEST) From: Vinicius Monego Date: Mon, 27 Jul 2020 17:42:06 -0300 Message-Id: <20200727204206.12142-1-monego@posteo.net> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=185.67.36.66; envelope-from=monego@posteo.net; helo=mout02.posteo.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/27 16:42:33 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: -2.3 (--) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=posteo.net header.s=2017 header.b=BpxtB+u9; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: 5.09 X-TUID: EgdAxe13jcxP * 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