1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pdm-backend,
6 anyio,
7 typing-extensions,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "asyncer";
13 version = "0.0.9";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "fastapi";
18 repo = "asyncer";
19 tag = version;
20 hash = "sha256-1M5MGaxfEfJMCfAoGorNGbRBZdvLue5lHu8DuR96mLo=";
21 };
22
23 build-system = [ pdm-backend ];
24
25 dependencies = [
26 anyio
27 typing-extensions
28 ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 pythonImportsCheck = [ "asyncer" ];
33
34 meta = {
35 description = "Asyncer, async and await, focused on developer experience";
36 homepage = "https://github.com/fastapi/asyncer";
37 changelog = "https://github.com/fastapi/asyncer/releases/tag/${version}";
38 license = lib.licenses.mit;
39 maintainers = with lib.maintainers; [ defelo ];
40 };
41}