Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 45 lines 755 B view raw
1{ buildPythonPackage 2, fetchPypi 3, isPy27 4, aiohttp 5, pytest 6, pytest-aiohttp 7, pygments 8, lib 9}: 10 11buildPythonPackage rec { 12 pname = "aiojobs"; 13 version = "0.2.2"; 14 format = "flit"; 15 disabled = isPy27; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "01a0msjh4w58fd7jplmblh0hwgpzwjs5xkgqz3d0p5yv3cykwjwf"; 20 }; 21 22 nativeBuildInputs = [ 23 pygments 24 ]; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 ]; 29 30 checkInputs = [ 31 pytest 32 pytest-aiohttp 33 ]; 34 35 checkPhase = '' 36 pytest tests 37 ''; 38 39 meta = with lib; { 40 homepage = "https://github.com/aio-libs/aiojobs"; 41 description = "Jobs scheduler for managing background task (asyncio)"; 42 license = licenses.asl20; 43 maintainers = with maintainers; [ cmcdragonkai ]; 44 }; 45}