1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pygments 6, pytestCheckHook 7, uvloop 8}: 9 10buildPythonPackage rec { 11 pname = "aiorun"; 12 version = "2021.10.1"; 13 format = "flit"; 14 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "cjrh"; 19 repo = pname; 20 rev = "v${version}"; 21 hash = "sha256-9e1vUWDBv3BYWuKR/rZUvaIxFFetzBQaygXKnl4PDd8="; 22 }; 23 24 propagatedBuildInputs = [ 25 pygments 26 ]; 27 28 checkInputs = [ 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 license = licenses.asl20; 46 maintainers = with maintainers; [ costrouc ]; 47 }; 48}