1{ lib 2, aiohttp 3, buildPythonPackage 4, fetchPypi 5, pytest-aiohttp 6, pytestCheckHook 7, pythonOlder 8, typing-extensions 9}: 10 11buildPythonPackage rec { 12 pname = "aiohttp-remotes"; 13 version = "1.1.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 pname = "aiohttp_remotes"; 20 inherit version; 21 sha256 = "e44f2c5fd5fc3305477c89bb25f14570589100cc58c48b36745d4239839d3174"; 22 }; 23 24 propagatedBuildInputs = [ 25 aiohttp 26 ] ++ lib.optionals (pythonOlder "3.7") [ 27 typing-extensions 28 ]; 29 30 checkInputs = [ 31 pytest-aiohttp 32 pytestCheckHook 33 ]; 34 35 postPatch = '' 36 substituteInPlace setup.cfg \ 37 --replace " --no-cov-on-fail --cov-branch --cov=aiohttp_remotes --cov-report=term --cov-report=html" "" 38 ''; 39 40 pythonImportsCheck = [ 41 "aiohttp_remotes" 42 ]; 43 44 meta = with lib; { 45 description = "A set of useful tools for aiohttp.web server"; 46 homepage = "https://github.com/wikibusiness/aiohttp-remotes"; 47 license = licenses.mit; 48 maintainers = with maintainers; [ qyliss ]; 49 }; 50}