Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, fetchpatch, buildPythonPackage, fetchPypi 2, aiohttp, pytest, pytestcov, pytest-aiohttp 3}: 4 5buildPythonPackage rec { 6 pname = "aiohttp_remotes"; 7 version = "0.1.2"; 8 9 src = fetchPypi { 10 inherit pname version; 11 sha256 = "43c3f7e1c5ba27f29fb4dbde5d43b900b5b5fc7e37bf7e35e6eaedabaec4a3fc"; 12 }; 13 14 patches = [ 15 (fetchpatch { 16 url = https://github.com/aio-libs/aiohttp-remotes/commit/188772abcea038c31dae7d607e487eeed44391bc.patch; 17 sha256 = "0pb1y4jb8ar1szhnjiyj2sdmdk6z9h6c3wrxw59nv9kr3if5igvs"; 18 }) 19 ]; 20 21 propagatedBuildInputs = [ aiohttp ]; 22 23 checkInputs = [ pytest pytestcov pytest-aiohttp ]; 24 checkPhase = '' 25 python -m pytest 26 ''; 27 28 meta = with lib; { 29 homepage = https://github.com/wikibusiness/aiohttp-remotes; 30 description = "A set of useful tools for aiohttp.web server"; 31 license = licenses.mit; 32 maintainers = [ maintainers.qyliss ]; 33 }; 34}