1{
2 buildPythonPackage,
3 lib,
4 fetchPypi,
5 pytestCheckHook,
6 pdm-pep517,
7 pytest-httpx,
8 setuptools,
9 starlette,
10 anyio,
11 pytest-asyncio,
12 pytest-tornasync,
13 pytest-trio,
14 pytest-twisted,
15 twisted,
16}:
17
18buildPythonPackage rec {
19 pname = "baize";
20 version = "0.22.2";
21 pyproject = true;
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-J+l8NsSTpCh7Uws+Zp45LXkLEBBurqOsOr8Iik/9smY=";
26 };
27
28 build-system = [
29 pdm-pep517
30 setuptools
31 ];
32
33 dependencies = [
34 starlette
35 ];
36
37 nativeCheckInputs = [
38 pytestCheckHook
39 pytest-httpx
40 anyio
41 pytest-asyncio
42 pytest-tornasync
43 pytest-trio
44 pytest-twisted
45 twisted
46 ];
47
48 disabledTests = [
49 # https://github.com/abersheeran/baize/issues/67
50 "test_files"
51 "test_request_response"
52 ];
53
54 meta = {
55 description = "Powerful and exquisite WSGI/ASGI framework/toolkit";
56 maintainers = with lib.maintainers; [ bot-wxt1221 ];
57 homepage = "https://baize.aber.sh/";
58 license = lib.licenses.asl20;
59 };
60}