From 6edb444389b6ff2dd8ca02cc9e24f3371c573181 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Sun, 17 May 2026 13:11:36 +0000 Subject: [PATCH] python3Packages.fastapi-pagination: init at 0.15.12 --- .../fastapi-pagination/default.nix | 50 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 52 insertions(+) create mode 100644 pkgs/development/python-modules/fastapi-pagination/default.nix diff --git a/pkgs/development/python-modules/fastapi-pagination/default.nix b/pkgs/development/python-modules/fastapi-pagination/default.nix new file mode 100644 index 000000000000..b00f868fac28 --- /dev/null +++ b/pkgs/development/python-modules/fastapi-pagination/default.nix @@ -0,0 +1,50 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + hatchling, + + # dependencies + fastapi, + pydantic, + typing-extensions, +}: + +buildPythonPackage (finalAttrs: { + pname = "fastapi-pagination"; + version = "0.15.12"; + pyproject = true; + __structuredAttrs = true; + + src = fetchFromGitHub { + owner = "uriyyo"; + repo = "fastapi-pagination"; + tag = finalAttrs.version; + hash = "sha256-AzpNyTzlzPHkrx8BghZFHer3w+GpNIUYRo15rRRO0UY="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + fastapi + pydantic + typing-extensions + ]; + + pythonImportsCheck = [ "fastapi_pagination" ]; + + # Tests require network access + doCheck = false; + + meta = { + description = "FastAPI pagination"; + homepage = "https://github.com/uriyyo/fastapi-pagination"; + changelog = "https://github.com/uriyyo/fastapi-pagination/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +}) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0443a3664d6a..89670e56dacf 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5421,6 +5421,8 @@ self: super: with self; { fastapi-mcp = callPackage ../development/python-modules/fastapi-mcp { }; + fastapi-pagination = callPackage ../development/python-modules/fastapi-pagination { }; + fastapi-sso = callPackage ../development/python-modules/fastapi-sso { }; fastapi-versionizer = callPackage ../development/python-modules/fastapi-versionizer { };