1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 baize,
6 httpx,
7 pdm-backend,
8 pytest-asyncio,
9 pytestCheckHook,
10 starlette,
11}:
12
13buildPythonPackage rec {
14 pname = "a2wsgi";
15 version = "1.10.10";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-pbz/tSCBujnfDV6aiE/G+BnZLjpCOJNDunfL+An+H0U=";
21 };
22
23 build-system = [ pdm-backend ];
24
25 dependencies = [
26 starlette
27 baize
28 ];
29
30 nativeCheckInputs = [
31 baize
32 httpx
33 pytest-asyncio
34 pytestCheckHook
35 starlette
36 ];
37
38 meta = {
39 description = "Convert WSGI app to ASGI app or ASGI app to WSGI app";
40 homepage = "https://github.com/abersheeran/a2wsgi";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ SuperSandro2000 ];
43 };
44}