From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48253) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Zyy-0001Q5-J9 for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Zyx-0003Qw-8I for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:35902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j9Zyx-0003Qm-52 for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j9Zyx-0006LC-3R for guix-patches@gnu.org; Wed, 04 Mar 2020 14:47:03 -0500 Subject: [bug#39917] [PATCH] gnu: Add python-pytest-vcr. Resent-Message-ID: Received: from eggs.gnu.org ([2001:470:142:3::10]:48094) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Zyh-00019n-T6 for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Zyg-00033Q-Od for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:47 -0500 Received: from flashner.co.il ([178.62.234.194]:56808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9Zyg-00032j-IM for guix-patches@gnu.org; Wed, 04 Mar 2020 14:46:46 -0500 From: Efraim Flashner Date: Wed, 4 Mar 2020 21:46:14 +0200 Message-Id: <20200304194614.11436-1-efraim@flashner.co.il> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 39917@debbugs.gnu.org Cc: Efraim Flashner * gnu/packages/python-check.scm (python-pytest-vcr): New variable. --- gnu/packages/python-check.scm | 34 +++++++++++++++++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.sc= m index a69619b96a..70a5b1e452 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -1,7 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2019 Ricardo Wurmus ;;; Copyright =C2=A9 2019 Tobias Geerinckx-Rice -;;; Copyright =C2=A9 2019 Efraim Flashner +;;; Copyright =C2=A9 2019, 2020 Efraim Flashner ;;; Copyright =C2=A9 2019 Maxim Cournoyer ;;; Copyright =C2=A9 2019 Hartmut Goebel ;;; Copyright =C2=A9 2020 Julien Lepiller @@ -30,6 +30,7 @@ #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) + #:use-module (guix git-download) #:use-module (guix download) #:use-module (guix build-system python)) =20 @@ -109,6 +110,37 @@ detect the absence of a cassette file and once again= record all HTTP interactions, which will update them to correspond to the new API.") (license license:expat))) =20 +(define-public python-pytest-vcr + (package + (name "python-pytest-vcr") + (version "1.0.2") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ktosiek/pytest-vcr") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key inputs outputs #:allow-other-keys) + (add-installed-pythonpath inputs outputs) + (invoke "pytest" "tests/")))))) + (propagated-inputs + `(("python-pytest" ,python-pytest) + ("python-vcrpy" ,python-vcrpy))) + (home-page "https://github.com/ktosiek/pytest-vcr") + (synopsis "Plugin for managing VCR.py cassettes") + (description + "Plugin for managing VCR.py cassettes.") + (license license:expat))) + (define-public python-pytest-checkdocs (package (name "python-pytest-checkdocs") --=20 2.25.1