1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, pygments 6, pytestCheckHook 7, pytest-cov 8, uvloop 9}: 10 11buildPythonPackage rec { 12 pname = "aiorun"; 13 version = "2021.8.1"; 14 format = "flit"; 15 disabled = pythonOlder "3.5"; 16 17 src = fetchFromGitHub { 18 owner = "cjrh"; 19 repo = pname; 20 rev = "v${version}"; 21 sha256 = "sha256-aehYPZ1+GEO+bNSsE5vVgjtVo4MRMH+vNurk+bJ1/Io="; 22 }; 23 24 propagatedBuildInputs = [ 25 pygments 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 pytest-cov 31 uvloop 32 ]; 33 34 # allow for writable directory for darwin 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 license = licenses.asl20; 45 maintainers = with maintainers; [ costrouc ]; 46 }; 47}