1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchPypi, 6 flit, 7 pytest-aiohttp, 8 pytestCheckHook, 9 pythonOlder, 10 typing-extensions, 11}: 12 13buildPythonPackage rec { 14 pname = "aiohttp-remotes"; 15 version = "1.2.0"; 16 format = "pyproject"; 17 18 disabled = pythonOlder "3.6"; 19 20 src = fetchPypi { 21 pname = "aiohttp_remotes"; 22 inherit version; 23 sha256 = "f95c3a6be5e2de746a85ce9af49ec548da6db8378d7e81bb171ec77b13562a6c"; 24 }; 25 26 nativeBuildInputs = [ flit ]; 27 28 propagatedBuildInputs = [ aiohttp ] ++ lib.optionals (pythonOlder "3.7") [ typing-extensions ]; 29 30 nativeCheckInputs = [ 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 = [ "aiohttp_remotes" ]; 41 42 pytestFlagsArray = [ 43 "-W" 44 "ignore::DeprecationWarning" 45 "--asyncio-mode=auto" 46 ]; 47 48 meta = with lib; { 49 description = "Set of useful tools for aiohttp.web server"; 50 homepage = "https://github.com/wikibusiness/aiohttp-remotes"; 51 license = licenses.mit; 52 maintainers = with maintainers; [ qyliss ]; 53 }; 54}