Files
nixpkgs/pkgs/development/python-modules/cross-web/default.nix
T
Martin Weinelt 562c0d3ea9 python3Packages.cross-web: init at 0.4.1
New dependency for strawberry-graphql.
2026-02-01 17:39:01 +01:00

90 lines
1.4 KiB
Nix

{
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 = [ ];
};
})