mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
python3Packages.scalar-fastapi: init at 1.2.2
This commit is contained in:
65
pkgs/development/python-modules/scalar-fastapi/default.nix
Normal file
65
pkgs/development/python-modules/scalar-fastapi/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user