From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id mOh8JamVzmBygQAAgWs5BA (envelope-from ) for ; Sun, 20 Jun 2021 03:11:05 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id uLQDIamVzmAIGwAA1q6Kng (envelope-from ) for ; Sun, 20 Jun 2021 01:11:05 +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 AF2E026478 for ; Sun, 20 Jun 2021 03:11:02 +0200 (CEST) Received: from localhost ([::1]:53058 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lulzJ-0001f7-Mw for larch@yhetil.org; Sat, 19 Jun 2021 21:11:01 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52182) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lulyV-0000Nt-Qw for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:11 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:49517) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lulyU-00018S-Gk for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:10 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lulyU-0004L8-Cb for guix-patches@gnu.org; Sat, 19 Jun 2021 21:10:10 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49123] [PATCH 15/24] gnu: Add python-aioresponses. Resent-From: slg <0x2d@disroot.org> Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 20 Jun 2021 01:10:10 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49123 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49123@debbugs.gnu.org Cc: slg <0x2d@disroot.org> Received: via spool by 49123-submit@debbugs.gnu.org id=B49123.162415140716628 (code B ref 49123); Sun, 20 Jun 2021 01:10:10 +0000 Received: (at 49123) by debbugs.gnu.org; 20 Jun 2021 01:10:07 +0000 Received: from localhost ([127.0.0.1]:32821 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lulyR-0004Jp-1X for submit@debbugs.gnu.org; Sat, 19 Jun 2021 21:10:07 -0400 Received: from knopi.disroot.org ([178.21.23.139]:46776) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <0x2d@disroot.org>) id 1lulyM-0004IP-QK for 49123@debbugs.gnu.org; Sat, 19 Jun 2021 21:10:03 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 39D075C932; Sun, 20 Jun 2021 03:10:02 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YiqwM5iBekp6; Sun, 20 Jun 2021 03:10:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1624151400; bh=wGxV5ayYYFYK08LgHTs4ZTpSkU/kU8jlm9Nr5jRPClY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=HE7opHtC2YurSsNkDdTbsy/aRYJ8lQHcU0/ThdAxtl7b3+plqtb9D3tro/eh94pSj OwTJacBSYdx1M0AX3UrgcFcGiF8okIbTUBQdPt2J9kGwRynXK+MSTla7WbDKurHxH3 RpLXqQ8ATQD+pOyeC6OCCj+dCVczknOhwXCfZip9fLc8P500b7CvRyHIxqoBbFLDkp uQmV1QEcm6aJ6/+oSoMnMLTik4FIdCFrz3zZQB7II5vz9P3Di6POkMGjtLGvxEGfyT OUsWnm+yJKpvxJ9kBxBfbR4aOOJRdmRqVzP9pFdVC0ACDkzZ5v6aI0AagyYT0i1AVv rDC9gaqX1kOqg== Date: Sat, 19 Jun 2021 22:07:33 -0300 Message-Id: <20210620010742.4259-15-0x2d@disroot.org> In-Reply-To: <20210620010742.4259-1-0x2d@disroot.org> References: <20210620010742.4259-1-0x2d@disroot.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" Reply-to: slg <0x2d@disroot.org> X-ACL-Warn: , slg via Guix-patches From: slg 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=1624151465; 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=j+e0eljT1aMEIZRbFpWhwzUikNozyvC4xFOI/IBKeD0=; b=kJHhsoFuuMsRoJvrpLZCmHadrxFwy6hFb967HuYAibLMf91EUhcnO49J3Rt3UED0p5Qh3g IV7y19DV4X0iVoI2Vwe+42U1UiV6NFa9odeCSFRQ4FZRKBUXoOWniP3QKWVqIeJQlV01m8 COshmmzG4++LjYvvPpkeKzyeP4Sq3/I1Kk2aL1lCUe2jIiqRIH2jaJVaIazMNc1BaMZ98Q BGWIOgdq3luTtES5IiJE9ig/1M13pTCWCz9wkuj4DUYm/VAk3uWpoVnbg8lmQcBoszzOpL 2CkWmuVZOelOlyo2fwgeYAOHb9FfJlVeYLTHLaSgRBqo8wIwrX9IaWdCV6qphQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624151465; a=rsa-sha256; cv=none; b=UGGRUSuZzze5ZqWI4KsUnELmSZ1u7hUS+a5iwAkvg4DDH83FuqTBgUYhpSyUtftLgRh0Tw ghbUqe+l6mEEzU2uiBuQXgRBy5Fx3pO5HM9KEfncufdqPaVXITq8Plkf9njWhZ3l9UqgDX yQZs39auuhTYrPV/5gWwXA+CBKNJB3MxsPu7PK2HvNCuGNNyzs/pnwnP9g4PQqzRutrDgI +dYWUX7CoEeodUIg8pWiQHostwPLpIT56vtTp6KpDw4GqGm+9T8JYY/VPE3nfNjeX1nMCC aLfetPgMXcCh6PyE6Nit4qeSGWjTSMTUs//tXsOyyTin7yOrKCqyWNz17DrSQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=HE7opHtC; 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.58 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=HE7opHtC; 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: AF2E026478 X-Spam-Score: 1.58 X-Migadu-Scanner: scn1.migadu.com X-TUID: YzjwaZ3DZ18x * gnu/packages/python-web.scm (python-aioresponses): New variable. --- gnu/packages/python-web.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index d4a959aacf..3a01a8c33c 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -6054,3 +6054,31 @@ your code non-blocking and speedy.") "Socks is a library providing core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality.") (license license:asl2.0))) + +(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 + `(#:tests? #f)) ;; Tests make http requests + (propagated-inputs + `(("python-aiohttp" ,python-aiohttp))) + (native-inputs + `(("python-pbr" ,python-pbr))) + (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:x11))) -- 2.32.0