From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id SDzsKlvraGHwFAEAgWs5BA (envelope-from ) for ; Fri, 15 Oct 2021 04:45:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 0I+mJlvraGEjVwAAB5/wlQ (envelope-from ) for ; Fri, 15 Oct 2021 02:45:47 +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 4C6DA32CF5 for ; Fri, 15 Oct 2021 04:45:47 +0200 (CEST) Received: from localhost ([::1]:60996 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mbDEA-0005Rh-B5 for larch@yhetil.org; Thu, 14 Oct 2021 22:45:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56958) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbDDS-0005R2-25 for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:54284) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mbDDR-0003YR-QE for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mbDDR-0007KZ-NS for guix-patches@gnu.org; Thu, 14 Oct 2021 22:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51222] [PATCH 17/25] gnu: Add python-aioresponses. Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 15 Oct 2021 02:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51222 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51222@debbugs.gnu.org Cc: =?UTF-8?Q?S=C3=A9bastien?= Lerique Received: via spool by 51222-submit@debbugs.gnu.org id=B51222.163426584528032 (code B ref 51222); Fri, 15 Oct 2021 02:45:01 +0000 Received: (at 51222) by debbugs.gnu.org; 15 Oct 2021 02:44:05 +0000 Received: from localhost ([127.0.0.1]:37581 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDCX-0007I2-CW for submit@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:05 -0400 Received: from elegua.eauchat.org ([91.224.149.118]:42016 helo=eauchat.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbDCV-0007Gq-78 for 51222@debbugs.gnu.org; Thu, 14 Oct 2021 22:44:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eauchat.org; s=mail; t=1634265691; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bWGuumB+jV1bx6fDfcuAq+7W1Rj7sjojkSYZ7NPdnvk=; b=Z37jnneb77TzhQ+bjGD9g/6xtFRlIVgaYmDcF1hwS21HI/NsjIxOamtKzufDL8b/ikJOSQ Ite5Jy7rqWJlAhVgiMtz4aTmwKnPk6W/lS30L+noNrtLMKtEPEDRH+CCiFDwkcvrpXlhNm Ey+80fMTqwQKar3BYSJyLe4WIDv4CjE= From: =?UTF-8?Q?S=C3=A9bastien?= Lerique Date: Fri, 15 Oct 2021 11:40:28 +0900 Message-Id: <20211015024036.53831-17-sl@eauchat.org> In-Reply-To: <20211015024036.53831-1-sl@eauchat.org> References: <20211015024036.53831-1-sl@eauchat.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1634265947; h=from:from:sender:sender: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=bWGuumB+jV1bx6fDfcuAq+7W1Rj7sjojkSYZ7NPdnvk=; b=fm4k0Qke3CeyWGte51MtaZ4M2+oFqrHVOQk3/J3hUig4QSVePVhTNDittl2ZDoPGzjBCJf zV7bYxWs+6D4dxD4Y3xb0Bj0fJN7lBCD9Qy5eZDBqsWsrcrRZJq3vO1WsPgRAILCMAVpfH FP5gs1Xg5GFVtMAIyECGPiL7dEua/d/zoDqCaI+vazouDrtQLUH5gMgt6jEoK2XEs5c+WZ mHsTHY0jnB1PJ07xQvBL1+7Qeva3HIewvuF18Wp2pEIdLho+tbefsPJbm0e1DuvcKNAkqm ysdLjwm7ZUkYUyhIuahlSfJNsUGRQE+csyosiEk+UcyMUqCuvyEknUt9N/AEZQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1634265947; a=rsa-sha256; cv=none; b=kvps4q/DYOuwpVLIEr2BzYsqxT+HFMJtUO3pEANGiIwnzQ7Zdqyo90ECGBwU61Hp6fII3e Y76mSwmDtP4nS9qVvCZfDOEZ//3Wzxt5O8HCiroUHXh/cj477QEYF88L2wsZQON9EvWXWk 3kHNP9qgHix2PWPZTmV6SLgFHg+/prDLMNxhwGtcb5E0EZcRugJoL/SaOzFuPmvu4EYKmF VXUG/NhDfUw8+5OWVqyjpJUO5ClnAnHwEop0ydrddEFshNuLUaIHgpJU3shv5DgcqDYdbR o7sjvAfZ1Gp//VY129hfp90p3n35/K8rRGSO79Y67/rgsFAKlsBcz4qzFfHJDw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=Z37jnneb; 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: 3.28 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=eauchat.org header.s=mail header.b=Z37jnneb; dmarc=fail reason="SPF not aligned (relaxed)" header.from=eauchat.org (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-Migadu-Queue-Id: 4C6DA32CF5 X-Spam-Score: 3.28 X-Migadu-Scanner: scn1.migadu.com X-TUID: Eugg5V7fHteR * gnu/packages/python-xyz.scm (python-aioresponses): New variable. --- gnu/packages/python-xyz.scm | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 0aaac07d32..02e605b16d 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -229,6 +229,46 @@ #:use-module (srfi srfi-1) #:use-module (srfi srfi-26)) +(define-public python-aioresponses + (package + (name "python-aioresponses") + (version "0.7.2") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aioresponses" version)) + (sha256 + (base32 "16p8mdyfirddrsay62ji7rwcrqmmzxzf2isdbfm9cj5p338rbr42")))) + (build-system python-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke + "pytest" "-vv" "tests" "-k" + (string-append + ;; These tests require network access. + "not test_address_as_instance_of_url_combined_with_pass_through " + "and not test_pass_through_with_origin_params")))))))) + (native-inputs + `(("python-pbr" ,python-pbr) + ("python-ddt" ,python-ddt) + ("python-pytest" ,python-pytest))) + (propagated-inputs + `(("python-aiohttp" ,python-aiohttp))) + (home-page "https://github.com/pnuckowski/aioresponses") + (synopsis "Mock out requests made by ClientSession from aiohttp package") + (description + "Aioresponses is a helper to mock/fake web requests in python aiohttp +package. For requests module there are a lot of packages that help us with +testing (eg. httpretty, responses, requests-mock). When it comes to testing +asynchronous HTTP requests it is a bit harder (at least at the beginning). +The purpose of this package is to provide an easy way to test asynchronous +HTTP requests.") + (license license:expat))) + (define-public python-ueberzug (package (name "python-ueberzug") -- 2.33.0