From patchwork Sat May 3 09:03:51 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 42261 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 A447B27BC4B; Sat, 3 May 2025 10:05:28 +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=-6.4 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL, RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham 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 EB51A27BC49 for ; Sat, 3 May 2025 10:05:27 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uB8ny-0005WJ-3z; Sat, 03 May 2025 05:05:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uB8nv-0005UU-UZ for guix-patches@gnu.org; Sat, 03 May 2025 05:05:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uB8nv-0005zB-K3 for guix-patches@gnu.org; Sat, 03 May 2025 05:05:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=kuUtYtQYz0OBSRoaRVUpfqf11goZq1mxl7sOzyiPTMc=; b=JGrcm4MsDfKb+6zMHeSys3/y9tyT6oYsThgyYSMtchg5QgnDD01HnAuCSmlhDQlxgMi8zq3Q2xGMZeRa4lozKgoEFzxLy76W9wkRtzlqKFhBL28LrrAkdZY3mXMyrGS6oxQAC+07BpJ9U8XiX9+blsaJW5zG0pSXVvF8CICSfzYUDtKjcPvSF76ynVjPi4ZsdMyKwCY8fy5MFXdMJxF1ZoMae0PrvdCSCQQv/0ak2CHoCbZM7U+rrjqdfpYWkNzlNYfNSA44wz1xZjEppKvi3srxR15bqOhlbG/2ndxZO+skOt9NbGQSaTc8dnpi4egJcfMb+iK03eTrxv6xVzebNQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uB8nt-000754-S6; Sat, 03 May 2025 05:05:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78228] [PATCH] gnu: Add python-aiohttp-client-cache. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, me@bonfacemunyoki.com, sharlatanus@gmail.com, tanguy@bioneland.org, guix-patches@gnu.org Resent-Date: Sat, 03 May 2025 09:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 78228 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 78228@debbugs.gnu.org Cc: gemmaro , Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour Received: via spool by submit@debbugs.gnu.org id=B.174626308827188 (code B ref -1); Sat, 03 May 2025 09:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 3 May 2025 09:04:48 +0000 Received: from localhost ([127.0.0.1]:38168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uB8nf-00074N-LO for submit@debbugs.gnu.org; Sat, 03 May 2025 05:04:48 -0400 Received: from lists.gnu.org ([2001:470:142::17]:36192) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uB8nc-00073z-OW for submit@debbugs.gnu.org; Sat, 03 May 2025 05:04:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uB8nW-0005Rp-AW for guix-patches@gnu.org; Sat, 03 May 2025 05:04:38 -0400 Received: from mail-pf1-x42f.google.com ([2607:f8b0:4864:20::42f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uB8nU-0005nY-FQ for guix-patches@gnu.org; Sat, 03 May 2025 05:04:38 -0400 Received: by mail-pf1-x42f.google.com with SMTP id d2e1a72fcca58-73c17c770a7so4204014b3a.2 for ; Sat, 03 May 2025 02:04:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746263073; x=1746867873; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kuUtYtQYz0OBSRoaRVUpfqf11goZq1mxl7sOzyiPTMc=; b=cBpyjVMETfkOlzidBC3x2teS/CmkvJ4qCe0Ub0vcI4pvZZeZ66q93tJjqz24DXCdFd TQqMKsXs6Jqd6alZ8UsALmVxriLZeDmNS2VU8JsxnEtzps/I/wEVSj0d3UI9Fnhkaake bErm7ANmSLw+nts/KZwOg/BZy4qnfLnU3z/BGrEtFHXmuwaVpW64oYxN4aL3rwHhaqD9 Cn9YqQied7OufyCjagpUsgxWBtQaddagO2AljgYgfDsC0zqSZEHW6gZi1gzVCUe+W/Sk 6+bvB2Rr+oNdzpRBUra3iygAAGGHUaJRpgl+wYVkD/AkqEFjPFMUEPCPeaeqQTq044+w aqtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746263073; x=1746867873; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=kuUtYtQYz0OBSRoaRVUpfqf11goZq1mxl7sOzyiPTMc=; b=qTjieRqJui9y5lRJTLqqkJttwwTzWUZY5CXJ7hsDjwFqopafemBwJARCN/nnw5zPZn MuqwgU854m937NaZkzdw0e/1MJFK+MhohKliRamO34ZPqSvUpTaqyj4m3zAXusNU3DFq JAMYrfgRo5hPGMU5EAWhs8118lvImAXCkVXXpzUPg+QssFCCOyarQJ1ivh8niCZM/HJL WoAZhb5lYhj09D8opi7DvVZg3Wbr6Pjx1NHYM59Y61sSxswFYkKiXPMpc/UWNv2L3sh3 se//vDZOSwUA52PE+zLCeieZEmIwu+v20JdtABv9o3buKOnucar+e4r+yRK73iSOVWcl 9JRA== X-Gm-Message-State: AOJu0Yxbr6a+cezg84ZFVB7I+tMMF555HuJtaZoaSHKcgx/1hxhnNCUg Ong5vjKrVG6lzDnFqp3kg7FE6jAZXyued+FMBrARwpifS699F62RuEbcSQ== X-Gm-Gg: ASbGnctwzJ2f1CEAZ4toJED36nxzhbhUm0GEhgTRUxVbz3zMNfQrgckCDe/mHGK+SPE MjQbN5/qCo5gIqVSzarfBj7XESgurfNfaQILeXhs8hDAK7xrlggW1W9OICmW5+zFd+Q0EXnXbsb T0DYDRokPz9gA2zdTbEh/JS2+xjUvIFUg0mDhV/ClKcrefmffMYPtU2rXw/mxbZsqFUokj/DcJm NssO5cCiLI0CXEK7cHEYplFPevDtXgp/28slj0OH9rXx4Ux6Jjz8TfDTwQUW2UiAXQh3YrwQgj6 HPBuyqCFA8l30x06OzGfsop9LJQk7gnLb6Dq9+PXXtYdeXmF/nxk4fcvZM2ArY7hHcluHynyngL E23Ds24v2UDgz+A== X-Google-Smtp-Source: AGHT+IFG6pLta37vpKyhFblX5KT3/dEAg+QV2AYsF2jkZOAaxuV063glrgryipSUQFp3jMgLQEO6zA== X-Received: by 2002:a05:6a21:3299:b0:1f5:8e54:9f07 with SMTP id adf61e73a8af0-20e96ae6aa5mr590674637.24.1746263073527; Sat, 03 May 2025 02:04:33 -0700 (PDT) Received: from localhost.localdomain (ONI-202-70-254-104.oninet.ne.jp. [202.70.254.104]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-74058d7a473sm3026385b3a.18.2025.05.03.02.04.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 03 May 2025 02:04:33 -0700 (PDT) From: gemmaro Date: Sat, 3 May 2025 18:03:51 +0900 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42f; envelope-from=gemmaro.dev@gmail.com; helo=mail-pf1-x42f.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches * gnu/packages/python-web.scm (python-aiohttp-client-cache): New variable. Change-Id: Ic3de76483f2ca955a26fcba27dfbf54387331238 --- gnu/packages/python-web.scm | 52 ++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) base-commit: 12467f2c91e7f9ec70239229f8186a93193a9185 diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index c0c9e244f8..1e5b601c25 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -71,6 +71,7 @@ ;;; Copyright © 2024 Spencer King ;;; Copyright © 2024 Attila Lendvai ;;; Copyright © 2025 Daniel Ziltener +;;; Copyright © 2025 gemmaro ;;; ;;; This file is part of GNU Guix. ;;; @@ -1123,6 +1124,55 @@ (define-public python-aiohttp @end itemize") (license license:asl2.0))) +(define-public python-aiohttp-client-cache + (package + (name "python-aiohttp-client-cache") + (version "0.13.0") + (source + (origin + (method url-fetch) + (uri (pypi-uri "aiohttp_client_cache" version)) + (sha256 + (base32 "0lrq8fh94whvfmfr9ncfizq2ssa2fp1v1izd1y7f3gmd80ixcp6w")) + (modules '((guix build utils))) + (snippet '(begin + (delete-file "test/integration/test_dynamodb.py") + (delete-file "test/integration/test_mongodb.py") + ;; These tests require running Redis, SQLite, and HTTP + ;; servers. + (delete-file "test/integration/test_redis.py") + (delete-file "test/integration/test_sqlite.py") + (delete-file "test/integration/test_memory.py") + (delete-file "test/integration/test_filesystem.py"))))) + (build-system pyproject-build-system) + (native-inputs (list python-poetry-core + ;; TODO: Missing packages: pytest-clarity, + ;; nox-poetry, types-aiofiles. + python-async-timeout + python-brotli + python-faker + python-pytest + python-pytest-aiohttp + python-pytest-asyncio + python-pytest-cov + python-pytest-xdist)) + (propagated-inputs (list python-aiofiles + python-aiohttp + python-aiosqlite + python-attrs + python-itsdangerous + python-redis + python-url-normalize)) + (home-page "https://github.com/requests-cache/aiohttp-client-cache") + (synopsis "Persistent cache for aiohttp requests") + (description "This package is an asynchronous persistent caching library +specifically designed for @samp{aiohttp} requests in Python. With +support for various storage backends, it offers flexibility in how and +where the cache is stored. Please note that MongoDB and DynamoDB +backends are not currently supported due to the absence of the +@samp{motor} and @samp{aioboto3} package dependencies.") + (license license:expat))) + (define-public python-aiohttp-socks (package (name "python-aiohttp-socks") @@ -1135,7 +1185,7 @@ (define-public python-aiohttp-socks (base32 "0s70jpcr9wc8ld2v1w309cz7r8mm2bipf6zbkdqqaa0z0pwf3wj9")))) (build-system pyproject-build-system) - (arguments (list #:tests? #false)) ;none included + (arguments (list #:tests? #false)) ;none included (propagated-inputs (list python-aiohttp python-socks)) (native-inputs (list python-setuptools python-wheel))