From patchwork Wed Feb 28 23:35:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 61235 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 B52D027BBE9; Wed, 28 Feb 2024 23:45:56 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 CB18427BBE2 for ; Wed, 28 Feb 2024 23:45:54 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rfTcP-00007G-8A; Wed, 28 Feb 2024 18:45:47 -0500 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 1rfTcH-0008WQ-7b for guix-patches@gnu.org; Wed, 28 Feb 2024 18:45:41 -0500 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 1rfTcG-0001SH-QM; Wed, 28 Feb 2024 18:45:36 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rfTcg-0002zv-2b; Wed, 28 Feb 2024 18:46:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68492] [PATCH v2 2/2] gnu: Add python-fastapi-pagination. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, marius@gnu.org, me@bonfacemunyoki.com, sharlatanus@gmail.com, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Wed, 28 Feb 2024 23:46:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68492@debbugs.gnu.org Cc: Giacomo Leidi , Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , Marius Bakke , Munyoki Kilyungi , Sharlatan Hellseher , jgart Received: via spool by 68492-submit@debbugs.gnu.org id=B68492.170916395511501 (code B ref 68492); Wed, 28 Feb 2024 23:46:02 +0000 Received: (at 68492) by debbugs.gnu.org; 28 Feb 2024 23:45:55 +0000 Received: from localhost ([127.0.0.1]:55811 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfTcZ-0002zP-D5 for submit@debbugs.gnu.org; Wed, 28 Feb 2024 18:45:55 -0500 Received: from confino.investici.org ([93.190.126.19]:37549) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rfTcW-0002zD-HV for 68492@debbugs.gnu.org; Wed, 28 Feb 2024 18:45:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1709163362; bh=UquZA2hmVmjPdvzfkVOS5TikRrXeO9RSngLtoiD/4EE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Gq69PPaAFoDsFuTEQrENlkI3KkwwoAi7EUSZCy35UQMs4Yd1vI44QH9xhL2urNxlE yAP7K3xUnfNtvC/VgPINSZO54ncGRO0k1PZWW1pX4Yt7EE3zR2NWCGMEX6rnmVxTaQ Z8jVFV8hasgKnRVbg+nbOlicI5jEBGW1C14/s7n4= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4TlW2B4LtNz11Bg; Wed, 28 Feb 2024 23:36:02 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: goodoldpaul@autistici.org) by localhost (Postfix) with ESMTPSA id 4TlW2B3lt3z118h; Wed, 28 Feb 2024 23:36:02 +0000 (UTC) Date: Thu, 29 Feb 2024 00:35:51 +0100 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: <98b3490c282da8aed1b0106620959101b8d8eebb.1709163351.git.goodoldpaul@autistici.org> References: <98b3490c282da8aed1b0106620959101b8d8eebb.1709163351.git.goodoldpaul@autistici.org> 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: , Reply-to: Giacomo Leidi X-ACL-Warn: , Giacomo Leidi via Guix-patches X-Patchwork-Original-From: Giacomo Leidi via Guix-patches via From: Giacomo Leidi 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-fastapi-pagination): New variable. Change-Id: I3d5563baf7167e0bd0718cdbfc4a869a0bc96911 --- gnu/packages/python-web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 1ff5d1009d..8d0c5c278b 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -8824,6 +8824,38 @@ (define-public python-fastapi-pagination-minimal return paginated responses to your clients.") (license license:expat))) +(define-public python-fastapi-pagination + (package + (inherit python-fastapi-pagination-minimal) + (name "python-fastapi-pagination") + (propagated-inputs + (modify-inputs (package-propagated-inputs + python-fastapi-pagination-minimal) + (prepend python-asyncpg + python-databases + python-django + python-fastapi + python-pydantic + python-sqlalchemy + (package + (inherit python-tortoise-orm) + (arguments + (substitute-keyword-arguments (package-arguments + python-tortoise-orm) + ((#:phases phases '%standard-phases) + `(modify-phases ,phases + (delete 'sanity-check))))) + (propagated-inputs + (modify-inputs (package-propagated-inputs python-tortoise-orm) + (replace "python-aiosqlite" python-aiosqlite))))))) + (description + (string-append (package-description python-fastapi-pagination-minimal) + " + +This package, as opposed to @code{python-fastapi-pagination-minimal}, depends on +all available optional dependencies supported by mainline +@code{fastapi-pagination}.")))) + (define-public python-pyactiveresource (package (name "python-pyactiveresource")