From patchwork Mon Jan 15 23:25:09 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Giacomo Leidi X-Patchwork-Id: 58924 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 46D1F27BBEA; Mon, 15 Jan 2024 23:26:24 +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=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, 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 51B0F27BBE2 for ; Mon, 15 Jan 2024 23:26:23 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPWLF-00040q-NI; Mon, 15 Jan 2024 18:26:05 -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 1rPWLD-00040N-45 for guix-patches@gnu.org; Mon, 15 Jan 2024 18:26:03 -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 1rPWLC-0001zP-Ry for guix-patches@gnu.org; Mon, 15 Jan 2024 18:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPWLB-0005M4-RP for guix-patches@gnu.org; Mon, 15 Jan 2024 18:26:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#68492] [PATCH] gnu: Add python-fastapi-pagination. Resent-From: Giacomo Leidi Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 Jan 2024 23:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 68492 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 68492@debbugs.gnu.org Cc: Giacomo Leidi X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.170536113920526 (code B ref -1); Mon, 15 Jan 2024 23:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jan 2024 23:25:39 +0000 Received: from localhost ([127.0.0.1]:47253 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPWKo-0005L0-IH for submit@debbugs.gnu.org; Mon, 15 Jan 2024 18:25:39 -0500 Received: from lists.gnu.org ([2001:470:142::17]:42196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPWKl-0005Ki-QA for submit@debbugs.gnu.org; Mon, 15 Jan 2024 18:25:37 -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 1rPWKe-0003wX-EL for guix-patches@gnu.org; Mon, 15 Jan 2024 18:25:28 -0500 Received: from confino.investici.org ([93.190.126.19]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPWKc-0001uE-31 for guix-patches@gnu.org; Mon, 15 Jan 2024 18:25:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1705361122; bh=afRU9fGLNnNO0ql4GCTa2tUDzvW647PPRJZ+mk8546Y=; h=From:To:Cc:Subject:Date:From; b=azhnIKdo1AsnnVTeAPnBpfV3lTmPtPJQavrJHu8lnXLv85KnqxS5CWjfyQIZAL7f9 kWuLj5vydSM24q37sE5cYfAG/NfxLa3jgm367omOaGZjmJUqUleppYbZOZvcKhe18F fGxYQBGVaOC1VoAiaNPWR9GvmnoIK0fD00FQPyGE= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4TDStB644Tz114F; Mon, 15 Jan 2024 23:25:22 +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 4TDStB4p57z114B; Mon, 15 Jan 2024 23:25:22 +0000 (UTC) Date: Tue, 16 Jan 2024 00:25:09 +0100 Message-ID: <20240115232510.11373-1-goodoldpaul@autistici.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Received-SPF: pass client-ip=93.190.126.19; envelope-from=goodoldpaul@autistici.org; helo=confino.investici.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: , 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: I335d984607ebb954032dd4b1eedccf436584c59d --- gnu/packages/python-web.scm | 31 ++++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) base-commit: 19db1551dc6f6180d2cda9084c2dec37bf4923c9 diff --git a/gnu/packages/python-web.scm b/gnu/packages/python-web.scm index 418100c084..ecb546ca8e 100644 --- a/gnu/packages/python-web.scm +++ b/gnu/packages/python-web.scm @@ -39,7 +39,7 @@ ;;; Copyright © 2020 Edouard Klein ;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego ;;; Copyright © 2020 Konrad Hinsen -;;; Copyright © 2020, 2022 Giacomo Leidi +;;; Copyright © 2020, 2022, 2024 Giacomo Leidi ;;; Copyright © 2021 Ekaitz Zarraga ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Maxime Devos @@ -8663,6 +8663,35 @@ (define-public python-fastapi-csrf-protect pattern.") (license license:expat))) +(define-public python-fastapi-pagination + (package + (name "python-fastapi-pagination") + (version "0.12.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/uriyyo/fastapi-pagination") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0qkcphjk1qy680v1hkmqbs4p7srvx020wy39b97anrn9dyyi5ah6")))) + (build-system pyproject-build-system) + (arguments + ;; Tests depend on python-cassandra + `(#:tests? #f)) + (native-inputs + (list poetry)) + (propagated-inputs (list python-fastapi + python-pydantic)) + (home-page "https://github.com/uriyyo/fastapi-pagination") + (synopsis "FastAPI pagination library") + (description "@code{fastapi-pagination} is a Python library designed to +simplify pagination in FastAPI applications. It provides a set of utility +functions and data models to help you paginate your database queries and +return paginated responses to your clients.") + (license license:expat))) + (define-public python-pyactiveresource (package (name "python-pyactiveresource")