Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 89 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990{ lib, buildPythonPackage, fetchFromGitHub,
# build-system hatchling,
# dependencies typing-extensions,
# optional-dependencies fastapi, httpx, python-multipart, starlette, django, flask, werkzeug, sanic, aiohttp, yarl, quart, chalice, litestar, sanic-testing,
# tests pytest-asyncio, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "cross-web"; version = "0.4.1"; pyproject = true;
src = fetchFromGitHub { owner = "usecross"; repo = "cross-web"; rev = finalAttrs.version; hash = "sha256-CH7SKePJcBgLPrdb3/qoim0Wzdx78+rNpJFWDHO7JWA="; };
build-system = [ hatchling ];
dependencies = [ typing-extensions ];
optional-dependencies = { integrations = [ fastapi httpx python-multipart starlette django flask werkzeug sanic aiohttp yarl quart chalice litestar sanic-testing ]; };
nativeCheckInputs = [ pytest-asyncio pytestCheckHook ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pythonImportsCheck = [ "cross_web" ];
meta = { description = "Universal web framework adapter for Python"; homepage = "https://github.com/usecross/cross-web"; changelog = "https://github.com/usecross/cross-web/blob/${finalAttrs.src.rev}/CHANGELOG.md"; license = lib.licenses.mit; maintainers = [ ]; };})