Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 50 lines 818 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, isPy27 5, pygments 6, pytest 7, pytestcov 8, uvloop 9}: 10 11buildPythonPackage rec { 12 pname = "aiorun"; 13 version = "2020.6.1"; 14 format = "flit"; 15 16 disabled = isPy27; 17 18 src = fetchFromGitHub { 19 owner = "cjrh"; 20 repo = pname; 21 rev = "v${version}"; 22 sha256 = "00mq5ylhhdfdqrh7zdqabf3wy85jrkqvgfb1421ll46fsjim2d14"; 23 }; 24 25 propagatedBuildInputs = [ 26 pygments 27 ]; 28 29 checkInputs = [ 30 pytest 31 pytestcov 32 uvloop 33 ]; 34 35 # allow for writable directory for darwin 36 preBuild = '' 37 export HOME=$TMPDIR 38 ''; 39 40 checkPhase = '' 41 pytest 42 ''; 43 44 meta = with lib; { 45 description = "Boilerplate for asyncio applications"; 46 homepage = "https://github.com/cjrh/aiorun"; 47 license = licenses.asl20; 48 maintainers = [ maintainers.costrouc ]; 49 }; 50}