summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/baize/default.nix
blob: 6515876e78971beff059c11dd4f9dd796fa7748e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  buildPythonPackage,
  fetchFromGitHub,
  httpx,
  lib,
  pdm-backend,
  pytest-asyncio,
  pytestCheckHook,
  setuptools,
  starlette,
}:

buildPythonPackage rec {
  pname = "baize";
  version = "0.23.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "abersheeran";
    repo = "baize";
    tag = "v${version}";
    hash = "sha256-TclyTLqJ+r9Spg6VgmsqhhVj/Mp/HqFrkXjZy5f2BR0=";
  };

  build-system = [
    pdm-backend
    setuptools
  ];

  pythonImportsCheck = [ "baize" ];

  nativeCheckInputs = [
    httpx
    pytest-asyncio
    pytestCheckHook
    starlette
  ];

  meta = {
    description = "Powerful and exquisite WSGI/ASGI framework/toolkit";
    homepage = "https://github.com/abersheeran/baize";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [
      dotlambda
      bot-wxt1221
    ];
  };
}