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.2.0"; 14 format = "flit"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchPypi { 19 pname = "aiohttp_remotes"; 20 inherit version; 21 sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c"; 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 pytestFlagsArray = [ 45 "-W" 46 "ignore::DeprecationWarning" 47 "--asyncio-mode=auto" 48 ]; 49 50 meta = with lib; { 51 description = "Set of useful tools for aiohttp.web server"; 52 homepage = "https://github.com/wikibusiness/aiohttp-remotes"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ qyliss ]; 55 }; 56}