1{
2 buildPythonPackage,
3 fetchFromGitHub,
4 httpx,
5 lib,
6 pdm-backend,
7 pytest-asyncio,
8 pytestCheckHook,
9 setuptools,
10 starlette,
11}:
12
13buildPythonPackage rec {
14 pname = "baize";
15 version = "0.23.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "abersheeran";
20 repo = "baize";
21 tag = "v${version}";
22 hash = "sha256-TclyTLqJ+r9Spg6VgmsqhhVj/Mp/HqFrkXjZy5f2BR0=";
23 };
24
25 build-system = [
26 pdm-backend
27 setuptools
28 ];
29
30 pythonImportsCheck = [ "baize" ];
31
32 nativeCheckInputs = [
33 httpx
34 pytest-asyncio
35 pytestCheckHook
36 starlette
37 ];
38
39 meta = {
40 description = "Powerful and exquisite WSGI/ASGI framework/toolkit";
41 homepage = "https://github.com/abersheeran/baize";
42 license = lib.licenses.asl20;
43 maintainers = with lib.maintainers; [
44 dotlambda
45 bot-wxt1221
46 ];
47 };
48}