python3Packages.scalar-fastapi: init at 1.2.2

This commit is contained in:
codgician
2025-07-19 02:04:44 +08:00
parent 4f0bc94fcc
commit 50d128bee6
2 changed files with 67 additions and 0 deletions

View File

@@ -0,0 +1,65 @@
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# python dependencies
annotated-types,
anyio,
fastapi,
idna,
pydantic,
sniffio,
starlette,
typing-extensions,
# tests
pytestCheckHook,
httpx,
}:
buildPythonPackage rec {
pname = "scalar-fastapi";
version = "1.2.2";
pyproject = true;
src = fetchPypi {
pname = "scalar_fastapi";
inherit version;
hash = "sha256-r5GoX6f7Ru078WcRvGNyhyYDxL1w4yjbfHvlf+ZF/sc=";
};
build-system = [
setuptools
];
dependencies = [
annotated-types
anyio
fastapi
idna
pydantic
sniffio
starlette
typing-extensions
];
pythonImportsCheck = [
"scalar_fastapi"
];
nativeCheckInputs = [
pytestCheckHook
httpx
];
meta = {
description = "A plugin for FastAPI to render a reference for your OpenAPI document";
homepage = "https://github.com/scalar/scalar/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ codgician ];
};
}

View File

@@ -15951,6 +15951,8 @@ self: super: with self; {
sbom4files = callPackage ../development/python-modules/sbom4files { };
scalar-fastapi = callPackage ../development/python-modules/scalar-fastapi { };
scalene = callPackage ../development/python-modules/scalene { };
scales = callPackage ../development/python-modules/scales { };