From patchwork Thu Oct 13 06:12:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: jgart X-Patchwork-Id: 43367 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BE0BE27BBEA; Thu, 13 Oct 2022 07:13:11 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 8097A27BBE9 for ; Thu, 13 Oct 2022 07:13:11 +0100 (BST) Received: from localhost ([::1]:37622 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oirSw-00015e-MS for patchwork@mira.cbaines.net; Thu, 13 Oct 2022 02:13:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60774) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oirSo-00014Q-DJ for guix-patches@gnu.org; Thu, 13 Oct 2022 02:13:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:59971) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oirSo-0000ye-1z for guix-patches@gnu.org; Thu, 13 Oct 2022 02:13:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oirSn-0000VJ-Sa for guix-patches@gnu.org; Thu, 13 Oct 2022 02:13:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58482] [PATCH] gnu: python-responses: Update to 0.22.0. Resent-From: jgart Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 13 Oct 2022 06:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 58482 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58482@debbugs.gnu.org Cc: jgart X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16656415651911 (code B ref -1); Thu, 13 Oct 2022 06:13:01 +0000 Received: (at submit) by debbugs.gnu.org; 13 Oct 2022 06:12:45 +0000 Received: from localhost ([127.0.0.1]:59049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirSX-0000Ul-BP for submit@debbugs.gnu.org; Thu, 13 Oct 2022 02:12:45 -0400 Received: from lists.gnu.org ([209.51.188.17]:46934) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oirSV-0000Ue-MJ for submit@debbugs.gnu.org; Thu, 13 Oct 2022 02:12:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56280) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oirSV-0000mI-FN for guix-patches@gnu.org; Thu, 13 Oct 2022 02:12:43 -0400 Received: from mx1.dismail.de ([78.46.223.134]:21896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oirST-0000wG-MW for guix-patches@gnu.org; Thu, 13 Oct 2022 02:12:43 -0400 Received: from mx1.dismail.de (localhost [127.0.0.1]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 89747c1c for ; Thu, 13 Oct 2022 08:12:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=dismail.de; h=from:to:cc :subject:date:message-id:mime-version:content-transfer-encoding; s=20190914; bh=I7WsrxWfBYJQifNCNEBUZbbaF64JFQtrMiuQhvZNC8k=; b= I62EOnlPHzHPbbiNRSXP9ox/4TiAgtwfd41R0M2gte+/5n+YsU2ygyD4H/URv7Aa Kw8OPlJsXqXjJxqan+mFIwERggqwfz5LPr3wZbIKPj9l6ceMYG7txIGeYyTDXZin T2ZJJMWfX8eCFD42RRwTKSyOzdWuJNlpqzvNPbpBuMWWF/B+ZaHjyioZqrJChKR+ 1QSE/qdEMWDnAJ25hV0d5afbKF9J1FyRN1+37+Z/0iG3/z3woxr5J5u3tSg8ahcp Y0FF0U8FkcPcjrBGCj4djTtAaK/APkw7lqMsquQjxRJJSSq8+7IFrInIJ6hHzCLw y2XGvgD6d6dTiVM0vvjLQA== Received: from smtp1.dismail.de ( [10.240.26.11]) by mx1.dismail.de (OpenSMTPD) with ESMTP id 2acb0810 for ; Thu, 13 Oct 2022 08:12:36 +0200 (CEST) Received: from smtp1.dismail.de (localhost [127.0.0.1]) by smtp1.dismail.de (OpenSMTPD) with ESMTP id abe45382 for ; Thu, 13 Oct 2022 08:12:36 +0200 (CEST) Received: by dismail.de (OpenSMTPD) with ESMTPSA id a940e060 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Thu, 13 Oct 2022 08:12:36 +0200 (CEST) Date: Thu, 13 Oct 2022 01:12:32 -0500 Message-Id: <20221013061232.28887-1-jgart@dismail.de> X-Mailer: git-send-email 2.38.0 MIME-Version: 1.0 Received-SPF: pass client-ip=78.46.223.134; envelope-from=jgart@dismail.de; helo=mx1.dismail.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: jgart X-ACL-Warn: , jgart via Guix-patches X-Patchwork-Original-From: jgart via Guix-patches via From: jgart X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-responses): Update to 0.22.0. [arguments]: Enable tests. [native-inputs]: Add python-pytest, python-pytest-asyncio, and python-pytest-httpserver. [inputs]: Add python-types-toml. --- gnu/packages/python-web.scm | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 6a9d6ee61d..7f6b8b3daf 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -3461,22 +3461,31 @@ (define-public python-cookies (define-public python-responses (package (name "python-responses") - (version "0.10.6") + (version "0.22.0") (source (origin (method url-fetch) (uri (pypi-uri "responses" version)) (sha256 (base32 - "147pacwkkqy3qf3hr33fnl1xbzgw0zsm3qppvvy9qhq8h069qbah")))) + "0bhhffwl0zqin4xc89nc97ynzr7l3j4b8rjqk9w9flnj2cmcnsir")))) (build-system python-build-system) (arguments - `(;; Test suite is not distributed: - ;; https://github.com/getsentry/responses/issues/38 - #:tests? #f)) + '(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-v"))))))) (native-inputs - (list python-mock)) + (list python-mock + python-pytest + python-pytest-asyncio + python-pytest-httpserver)) (propagated-inputs - (list python-requests python-cookies python-six)) + (list python-requests + python-cookies + python-six + python-types-toml)) (home-page "https://github.com/getsentry/responses") (synopsis "Utility for mocking out the `requests` Python library") (description "A utility library for mocking out the `requests` Python