1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 flit-core,
7 pygments,
8 pytestCheckHook,
9 uvloop,
10}:
11
12buildPythonPackage rec {
13 pname = "aiorun";
14 version = "2025.1.1";
15 pyproject = true;
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchFromGitHub {
20 owner = "cjrh";
21 repo = "aiorun";
22 tag = "v${version}";
23 hash = "sha256-YqUlWf79EbC47BETBDjo8hzg5jhL4LiWLKGr1Qy4AbM=";
24 };
25
26 build-system = [ flit-core ];
27
28 dependencies = [ pygments ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 uvloop
33 ];
34
35 preBuild = ''
36 export HOME=$TMPDIR
37 '';
38
39 pythonImportsCheck = [ "aiorun" ];
40
41 meta = with lib; {
42 description = "Boilerplate for asyncio applications";
43 homepage = "https://github.com/cjrh/aiorun";
44 changelog = "https://github.com/cjrh/aiorun/blob/v${version}/CHANGES";
45 license = licenses.asl20;
46 maintainers = [ ];
47 };
48}