From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id wFbUCm1XeGHI5wAAgWs5BA (envelope-from ) for ; Tue, 26 Oct 2021 21:30:53 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id oB6VBm1XeGGJPwAAB5/wlQ (envelope-from ) for ; Tue, 26 Oct 2021 19:30:53 +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 A0D0421A15 for ; Tue, 26 Oct 2021 21:30:52 +0200 (CEST) Received: from localhost ([::1]:33118 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfS9n-0006WN-GY for larch@yhetil.org; Tue, 26 Oct 2021 15:30:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42270) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfS95-0006S2-T9 for guix-patches@gnu.org; Tue, 26 Oct 2021 15:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36037) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfS95-0004eT-JW for guix-patches@gnu.org; Tue, 26 Oct 2021 15:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mfS95-0001Q9-C7 for guix-patches@gnu.org; Tue, 26 Oct 2021 15:30:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51419] [PATCH 2/2] gnu: python-vcrpy: Update to 4.1.1. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Oct 2021 19:30:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51419 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51419@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16352765925397 (code B ref -1); Tue, 26 Oct 2021 19:30:03 +0000 Received: (at submit) by debbugs.gnu.org; 26 Oct 2021 19:29:52 +0000 Received: from localhost ([127.0.0.1]:47581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfS8u-0001Oz-21 for submit@debbugs.gnu.org; Tue, 26 Oct 2021 15:29:52 -0400 Received: from lists.gnu.org ([209.51.188.17]:36344) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mfS8s-0001Oq-Po for submit@debbugs.gnu.org; Tue, 26 Oct 2021 15:29:51 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42232) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfS8p-0006Mh-81 for guix-patches@gnu.org; Tue, 26 Oct 2021 15:29:49 -0400 Received: from latitanza.investici.org ([82.94.249.234]:63891) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfS8f-0004Z2-TV for guix-patches@gnu.org; Tue, 26 Oct 2021 15:29:47 -0400 Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4Hf22H48jmzGp4R; Tue, 26 Oct 2021 19:29:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1635276567; bh=tIqL/HX5IT7WJZoWilTCAwGzik/OeNP0rLi0tKkaCHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AsWg3gjN1i/LjzNmYUDb8q2Qqg2MCnPmXIBlXQ1/u/rKZOEU9EY7tjWPGpnPK7xPe Vy1EbVITb5FeSSwIy6JbRUBZo3KlD9NNrXMJnW7PNPmqnj41WmebNqxNbe41UsV/UY FgkMtRa7KHLG+d3JO1cRBwWoOz8+YYkrxbrxMd1Y= Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4Hf22H3Kq6zGp4H; Tue, 26 Oct 2021 19:29:27 +0000 (UTC) Date: Tue, 26 Oct 2021 21:28:59 +0200 Message-Id: <20211026192859.875-2-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211026192859.875-1-goodoldpaul@autistici.org> References: <20211026192859.875-1-goodoldpaul@autistici.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=82.94.249.234; envelope-from=goodoldpaul@autistici.org; helo=latitanza.investici.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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" Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches From: Giacomo Leidi via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635276652; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=tIqL/HX5IT7WJZoWilTCAwGzik/OeNP0rLi0tKkaCHc=; b=Ev4mXnLWqaPimgZOqbXdCjpoLoaxZQY+eM7/gDiv0uVhriv692EQkQWJJs+K/plHrcv5Gb JwTUAMogIocDG0psAj0VRHa+BhRU0BqpsCKfI53uNaabFd6OIDJ1M5jZzICSE76VXjksw+ w8IYMAI/mud2f/uaTWo5gvGT4Ke4G6GB8HwS93RZxITNqoI4AJh1h8YvLpYOcCTeDtXpJq vVyjEDhNSfpYzmtI7CfcN/svqeIzNyuvVHZlveLYZJzQUOqZG73el5Wouqwx6q5wdFgK7u GUWZELyI/AUyXKZB1IUQ4oByaurvAu6IPKUIZMPE+gPXv/E8mWChYQwLPIzplA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635276652; a=rsa-sha256; cv=none; b=UfS0kZJU/k+yDJyGLNaZO59hGxpXZI7VlGHDV3l+y6iA9TfrVFiFQk6igH+3LTF+vqkkfr LMKAeyU27Cps6yYga3m46fdzpmKrLGmpm8RSh2Ag7MSmbCl06h7h50bmFzOfR2hRs4Owd7 hBUfkY5kFSWA8lI4fa9BoR6GUfiLYuR7mo6bKNdLOgVietPRWVcZekniwNCNruo5kT/2M5 9ndz2LJjk+WjChLESl0MzKYB2bx/AeISy8+x1Ql88PCaVO/j5W5ETgP9L9lm08nawdaWif omoYpUYeTrLD01MzbPaaS8+LnjF6lAF5NJ+9eGXFeOxVXMZY03KYhnwSmF6vZA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=AsWg3gjN; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Spam-Score: 1.07 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=autistici.org header.s=stigmate header.b=AsWg3gjN; dmarc=pass (policy=none) header.from=gnu.org; 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-Migadu-Queue-Id: A0D0421A15 X-Spam-Score: 1.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: PnEQBsx6w1hY * gnu/packages/python-xyz.scm (python-vcrpy): Update to 4.1.1. [arguments]: Replace 'check phase to run unit tests. [native-inputs]: Add required dependencies. --- gnu/packages/python-check.scm | 39 ++++++++++++++++++++++++++--------- 1 file changed, 29 insertions(+), 10 deletions(-) diff --git a/gnu/packages/python-check.scm b/gnu/packages/python-check.scm index a13bd0baa4..c70c3d3cf9 100644 --- a/gnu/packages/python-check.scm +++ b/gnu/packages/python-check.scm @@ -228,25 +228,44 @@ (define-public python-junit-xml (define-public python-vcrpy (package (name "python-vcrpy") - (version "2.0.1") + (version "4.1.1") (source - (origin - (method url-fetch) - (uri (pypi-uri "vcrpy" version)) - (sha256 - (base32 - "0kws7l3hci1dvjv01nxw3805q9v2mwldw58bgl8s90wqism69gjp")))) + (origin + (method url-fetch) + (uri (pypi-uri "vcrpy" version)) + (sha256 + (base32 "16gmzxs3lzbgf1828n0q61vbmwyhpvzdlk37x6gdk8n05zr5n2ap")))) (build-system python-build-system) - (arguments `(#:tests? #f)) ; tests require more packages for python-pytest-httpbin + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? outputs #:allow-other-keys) + (when tests? + (substitute* "tox.ini" + (("AWS_ACCESS_KEY_ID") "PYTHONPATH")) + (setenv "PYTHONPATH" (string-append ".:" (getenv "PYTHONPATH"))) + ;; These tests require network access. + (delete-file "tests/unit/test_stubs.py") + (invoke "pytest" "tests/unit"))))))) (propagated-inputs `(("python-pyyaml" ,python-pyyaml) ("python-six" ,python-six) ("python-wrapt" ,python-wrapt) ("python-yarl" ,python-yarl))) (native-inputs - `(("python-mock" ,python-mock) + `(("python-black" ,python-black) + ("python-coverage" ,python-coverage) + ("python-flake8" ,python-flake8) + ("python-flask" ,python-flask) + ("python-httplib2" ,python-httplib2) + ("python-ipaddress" ,python-ipaddress) + ("python-mock" ,python-mock) ("python-pytest" ,python-pytest) - ("python-pytest-httpbin" ,python-pytest-httpbin))) + ("python-pytest-cov" ,python-pytest-cov) + ("python-pytest-httpbin" ,python-pytest-httpbin) + ("python-tox" ,python-tox) + ("python-urllib3" ,python-urllib3))) (home-page "https://github.com/kevin1024/vcrpy") (synopsis "Automatically mock your HTTP interactions") (description -- 2.33.1