mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-09 23:03:47 +00:00
51 lines
993 B
Nix
51 lines
993 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
hatchling,
|
|
|
|
# dependencies
|
|
fastapi,
|
|
pydantic,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fastapi-pagination";
|
|
version = "0.15.14";
|
|
pyproject = true;
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "uriyyo";
|
|
repo = "fastapi-pagination";
|
|
tag = finalAttrs.version;
|
|
hash = "sha256-W3SgSne3GgRl2W6l3NWUguvzxigLCVgMLiT/fMIWSAE=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
})
|