1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8 9 # python dependencies 10 annotated-types, 11 anyio, 12 fastapi, 13 idna, 14 pydantic, 15 sniffio, 16 starlette, 17 typing-extensions, 18 19 # tests 20 pytestCheckHook, 21 httpx, 22}: 23 24buildPythonPackage rec { 25 pname = "scalar-fastapi"; 26 version = "1.4.2"; 27 pyproject = true; 28 29 src = fetchPypi { 30 pname = "scalar_fastapi"; 31 inherit version; 32 hash = "sha256-mXeUxDobSdZmxWWiuF2C+oY5Zvh6LljdZQc9/YwdqGI="; 33 }; 34 35 build-system = [ 36 setuptools 37 ]; 38 39 dependencies = [ 40 annotated-types 41 anyio 42 fastapi 43 idna 44 pydantic 45 sniffio 46 starlette 47 typing-extensions 48 ]; 49 50 pythonImportsCheck = [ 51 "scalar_fastapi" 52 ]; 53 54 nativeCheckInputs = [ 55 pytestCheckHook 56 httpx 57 ]; 58 59 meta = { 60 description = "Plugin for FastAPI to render a reference for your OpenAPI document"; 61 homepage = "https://github.com/scalar/scalar/"; 62 license = lib.licenses.mit; 63 maintainers = with lib.maintainers; [ codgician ]; 64 }; 65}