aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiacomo Leidi <goodoldpaul@autistici.org>2024-02-29 00:35:51 +0100
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-03-01 07:17:17 +0000
commita9b91cbc9c0686316f71f415b2e6e4f341221564 (patch)
treea07ec4a5cef631aae1182fdb48220ac84470a3a8
parentd6dbb923d822029a015379f681daa762c4fbbe82 (diff)
downloadguix-a9b91cbc9c0686316f71f415b2e6e4f341221564.tar.gz
guix-a9b91cbc9c0686316f71f415b2e6e4f341221564.zip
gnu: Add python-fastapi-pagination.
* gnu/packages/python-web.scm (python-fastapi-pagination): New variable. Change-Id: I3d5563baf7167e0bd0718cdbfc4a869a0bc96911 Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
-rw-r--r--gnu/packages/python-web.scm32
1 files changed, 32 insertions, 0 deletions
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 @@ functions and data models to help you paginate your database queries and
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")