From patchwork Mon May 5 00:09:55 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: gemmaro X-Patchwork-Id: 42307 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 C476327BC4B; Mon, 5 May 2025 01:15:23 +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 1C40827BC49 for ; Mon, 5 May 2025 01:15:23 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uBjUA-0007u8-CY; Sun, 04 May 2025 20:15: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 1uBjU8-0007sM-6u for guix-patches@gnu.org; Sun, 04 May 2025 20:15:04 -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 1uBjU7-000140-Pu for guix-patches@gnu.org; Sun, 04 May 2025 20:15: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:In-Reply-To:References:Subject; bh=NU8yflFa/CKbmgaV9lw+KLINvAbX+FSyS117huA8dlI=; b=DaT8+xyT29M37+FZyUUSlbF1Rot8laDWisOrGmgXbsuycpsO444H6EthLpYy6Iz2BnpLgppF+++AJgEXmJC5sW1ZloFewdJcfQiEntE3/2PSP+SO4pA3XyWnpkSvYTznkW0VdvhjwfH9Myoa66UB7afafGa5Neqv24dXpauV2H1XSQqrWLQcvMe5wl+RT46EcV+Ke8NtACfIyFXIiXEPCmGkemaO7YGpbFc02yuZG/zfYYyNjowwp6lYfMYL7lgpQx6Nufq5oRwo1N/rqLstYbCAzTMWtZDoEpZkhOMGQlbryCURjKfRheR6FMUrGFVuaTbgknnyQlNBOfYun4stOQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1uBjU5-0002YE-Kv; Sun, 04 May 2025 20:15:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#78228] [PATCH v2] gnu: Add python-aiohttp-client-cache. References: In-Reply-To: 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: Mon, 05 May 2025 00:15:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 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-Xcc: Lars-Dominik Braun , Munyoki Kilyungi , Sharlatan Hellseher , Tanguy Le Carrour Received: via spool by 78228-submit@debbugs.gnu.org id=B78228.17464040559689 (code B ref 78228); Mon, 05 May 2025 00:15:01 +0000 Received: (at 78228) by debbugs.gnu.org; 5 May 2025 00:14:15 +0000 Received: from localhost ([127.0.0.1]:35247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uBjTC-0002W2-HT for submit@debbugs.gnu.org; Sun, 04 May 2025 20:14:15 -0400 Received: from mail-pl1-x633.google.com ([2607:f8b0:4864:20::633]:55647) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uBjT8-0002VL-Ix for 78228@debbugs.gnu.org; Sun, 04 May 2025 20:14:04 -0400 Received: by mail-pl1-x633.google.com with SMTP id d9443c01a7336-224171d6826so56166405ad.3 for <78228@debbugs.gnu.org>; Sun, 04 May 2025 17:14:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1746404036; x=1747008836; darn=debbugs.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=NU8yflFa/CKbmgaV9lw+KLINvAbX+FSyS117huA8dlI=; b=PCrMcbBDGf+/k1aAVZeD83W4lh+RoF113j7FzBUH5x5BsGVu3rTeJ+VAt6AYfKvVHH 822H3bgZXx4dJ0w1i3eTE2vZHjaj2zckw3yVSc/DFwAW0e1ragRt7U+qFZzuzqDkXoAx yT8Dkr2N78zZ7KRM7NKzlDLVqRlZhligF4Kk/sSZax0Ig2FBbAGMn/jlqEutOVgrL67m XKYvnkfq8x1ABfgOaWsVYmHdokd8GPrkLbD0mbYA9BRhEPAP/FHlmTPA+nfAuFo0lu3A qC7jxfEo3rPN1Y5gTrnQzFmx+3kheGYAIebVz2ukXJSkxTo6lDJ9r09Wm7p4ijOTSSuJ HXOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1746404036; x=1747008836; 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=NU8yflFa/CKbmgaV9lw+KLINvAbX+FSyS117huA8dlI=; b=iybNhzlY+yijvBJcKsz3tikNHrAVhE5ZrNW+4/gJcBOK+skd4oSFM1tJHzNKvj02z3 9pYvn1MyBmzUcV/aJS+JD2Vs289I90Rt5R9dVKz2rxaSRgKKCCon7krl21qz83RCkYCq DyZGuPR/IYRMw3I6R+tKP98kh7M9hNC0ZQwIxNE5YoKXTJweSAinedBMmWr/6XFM8n2P iZupyg1lzinuLLwWlAS+sHLqwQDd1uILsBdf17nQwx5OF5RO9Digf1VfSgspemnQLBPg F/vhK4M10peqStXxIC6OMEuEvq7ML3X4x16TWABLYfmqhzzLq+J3IGlhJ+nYFchZBijZ uGcA== X-Gm-Message-State: AOJu0Yy1uX1YqQo+yUt2IMmvkYp7o2Av2cX/+6OjbekRkLu2Fo1dYKCg c8Abdo9aCw8NoinF4HBxPb8wUmE3ZztuVxzVvnFAL1/v+fLJPtli//JawA== X-Gm-Gg: ASbGncttCwof8b8+8MZHVRm1e/JAfnHY90zLWlECuOMKrWVJD8f4T0Q4uWphbzHs7W8 9qbl+sJVJv8cFCKRg6EfGgqo7SIlvX5WdBSDtYTdI6HCW/M7cSTe2rK2uWYd3mGV26tj0SpNMnv 8JdpApfzBiS+Xq3b/iNDoXqUgRt9j25ceAw82edL2vM8YG77tb6rZT4eo5NkDI3ZjxgsR57FMTK 6pvXV89ZNARVqhH5NhPnKzLXzWri8I0DFBOyE/Uk2uEv6+GQkwwpJvbBV3QGgNfU4NsVbTNYKjn /2XIyNdHlb0Ck5BUZln+ozfWE89p68Z10wNRJS3K4lfMQXm4oBcBQUKDITaLeMERU/qmRFG6V2w VATay6Qwk+P4MVQ== X-Google-Smtp-Source: AGHT+IHAw7at38mpjUjHyodExfTnb0wdjsKFEys2XL1CsHbKRz2VMnfWjruQZe79FuiIeoekokBVMQ== X-Received: by 2002:a17:903:1aa8:b0:224:1781:a947 with SMTP id d9443c01a7336-22e1e905660mr84117735ad.21.1746404036304; Sun, 04 May 2025 17:13:56 -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 d9443c01a7336-22e15228a1asm42797355ad.173.2025.05.04.17.13.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 May 2025 17:13:55 -0700 (PDT) From: gemmaro Date: Mon, 5 May 2025 09:09:55 +0900 Message-ID: X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 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: Iea3f8ad33cbb2ee8979cb59071653ddb54e5111b --- I used the for-each to remove failing test files and applied the Guix style to the description section. gnu/packages/python-web.scm | 53 ++++++++++++++++++++++++++++++++++++- 1 file changed, 52 insertions(+), 1 deletion(-) base-commit: 16ee065aa006e4cd8982e26cd0430f9e018874ad prerequisite-patch-id: 59d7206b9e057a16723e7daeec5fbfe6fe4bcda8 prerequisite-patch-id: 8dee9c68dfc367b217b4ff8aae0391477d5e9910 prerequisite-patch-id: a1ddcbb34b1cc5a32ad2679597ec1a8632150d7a prerequisite-patch-id: c390d6eabe5f8727806599bfd13461043d749436 prerequisite-patch-id: 1cb7277769c4e60f07c8435c99c4a6dfc464f005 prerequisite-patch-id: 266082644d86f910711f97a0ed7eb7277b03a937 prerequisite-patch-id: 7139c981c6c1e25b1920d176f6ba9ae4044b2a33 prerequisite-patch-id: 8d4fb61237866e7390e54df79973ffa58ba62746 prerequisite-patch-id: 127e4eec9cc3b232543c77766e2be8a82458744b prerequisite-patch-id: a6c060f97910f31a772bec4ab201282e8082445f prerequisite-patch-id: 2766f951811bd99594fe1d7af2df1c402fd65615 prerequisite-patch-id: 04dcd4b935c917f456cb03242431b7ba57bc8744 prerequisite-patch-id: 3487c506246a50f0ac11b6ae2300260a800aa078 prerequisite-patch-id: 3de566804aaf1ce064096457e745d7371ac5b313 prerequisite-patch-id: 39d0d1ed8407708224f7a7c56cc970dc380f0f8d prerequisite-patch-id: 9a1cbbecfce76172bbb103727695662588d71830 prerequisite-patch-id: 08e7b0f76b582a669f8141647c745edabe64cadf prerequisite-patch-id: f1f9a3aee69d5b5bf1943919be20b97bd2493bba prerequisite-patch-id: a8415a9a6272989aaa39b7f70aeeb16331869d57 prerequisite-patch-id: 02b2a0449164a3b0751bcc4e575d056faa4d7bb3 prerequisite-patch-id: 0de01f0c79fe22f0d4bc479c1b1bb5fafd4063e9 prerequisite-patch-id: e8c71fbd8ecfcf5bd3209253f95ab513c4de1233 prerequisite-patch-id: dbfa908f540926e895914460219fd45a198e9d40 prerequisite-patch-id: 7ef5a2e5357d5dc1a21cbff576f9128bac39d2f7 prerequisite-patch-id: 444e3168704cd182fe741b5fec040532e9a0eb7f prerequisite-patch-id: f2813d580d42ada7b3c67d38f39f0acdac72dd47 prerequisite-patch-id: 6cefa59c6e63efadccc7a6b7315617cd21241c6e prerequisite-patch-id: 8979fb84ad9d0c56da97bb6af7623685b2f1c555 prerequisite-patch-id: b33bcbb6908577c17739add725150d66727608eb prerequisite-patch-id: fa38b4cea65fb35abf46a80192a7cdc0f074ec2d prerequisite-patch-id: 5e6d999cab2251df756c9620c26b0896d57aba51 prerequisite-patch-id: 20174e33e6f290ee94eedf4c1b1b72241d05f2be prerequisite-patch-id: 266be7ae89dfa104b3da4e210da64c696d0b96d4 prerequisite-patch-id: d9ddf3c4b0f366151f97a920d6b39444e1bfb1ca prerequisite-patch-id: 49a720a863fd8d88aea302a5e966adb93cf2fa74 prerequisite-patch-id: 43980432f654ad35c7c0b20ee85f164d65a773b6 prerequisite-patch-id: d3e821bedd6f26b3f2c3a1730c184ea9b63eede2 prerequisite-patch-id: 1cf66cfe4931295ac80bb5bdc3ed4bf055dd5abb prerequisite-patch-id: 1e7b5df0fd2b11050dd4efdf58c8c8396a823203 prerequisite-patch-id: b4265c08389f4f8d7e659684d1d52def71ac156c prerequisite-patch-id: 22bafc40fc456fc2d8172334cac26d47683c2aaf prerequisite-patch-id: a35b19bbb8dde2413fc0d90e124f6f49022a64cd prerequisite-patch-id: e84996913c42a3d145103141eec73ee405300f0c prerequisite-patch-id: 30a25429bba9ff969cf2081a595c6dd80e58fb84 diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index c0c9e244f8..7fa0c8ea9e 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,56 @@ (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 + (with-directory-excursion "test/integration" + (for-each delete-file + '("test_dynamodb.py" "test_mongodb.py" + ;; These tests require running Redis, SQLite, + ;; and HTTP servers. + "test_redis.py" + "test_sqlite.py" + "test_memory.py" + "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 +1186,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))