Subject: bug#68492: closed ([PATCH] gnu: Add python-fastapi-pagination.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 01 Mar 2024 07:37:02 +0000

Your bug report

#68492: [PATCH] gnu: Add python-fastapi-pagination.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
68492: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=68492
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: [PATCH] gnu: Add python-fastapi-pagination.
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Fri, 01 Mar 2024 07:34:53 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Pushed as d6dbb923d8..a9b91cbc9c to master.

--
Oleg

Subject: [PATCH] gnu: Add python-fastapi-pagination.
From: Giacomo Leidi <[email-masked]>
To: [email-masked]
Cc: Giacomo Leidi <[email-masked]>
Date: Tue, 16 Jan 2024 00:25:09 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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(-)

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 <[email-masked]>
 ;;; Copyright © 2020, 2021, 2022, 2023 Vinicius Monego <[email-masked]>
 ;;; Copyright © 2020 Konrad Hinsen <[email-masked]>
-;;; Copyright © 2020, 2022 Giacomo Leidi <[email-masked]>
+;;; Copyright © 2020, 2022, 2024 Giacomo Leidi <[email-masked]>
 ;;; Copyright © 2021 Ekaitz Zarraga <[email-masked]>
 ;;; Copyright © 2021 Greg Hogan <[email-masked]>
 ;;; Copyright © 2021 Maxime Devos <[email-masked]>
@@ -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")

base-commit: 19db1551dc6f6180d2cda9084c2dec37bf4923c9
-- 
2.41.0