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