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