1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pytestCheckHook 6, pytest-asyncio 7}: 8 9buildPythonPackage rec { 10 pname = "async-lru"; 11 version = "1.0.3"; 12 13 disabled = pythonOlder "3.6"; 14 15 src = fetchFromGitHub { 16 owner = "aio-libs"; 17 repo = "async-lru"; 18 rev = "v${version}"; 19 hash = "sha256-98ZPFSOFRnymTCfCG9OuajfxXAWyCrByyJEHhpPVPbM="; 20 }; 21 22 postPatch = '' 23 sed -i -e '/^addopts/d' -e '/^filterwarnings/,+2d' setup.cfg 24 ''; 25 26 checkInputs = [ 27 pytestCheckHook 28 pytest-asyncio 29 ]; 30 31 pytestFlagsArray = [ 32 "--asyncio-mode=strict" 33 ]; 34 35 pythonImportsCheck = [ "async_lru" ]; 36 37 meta = with lib; { 38 description = "Simple lru cache for asyncio"; 39 homepage = "https://github.com/wikibusiness/async_lru"; 40 license = licenses.mit; 41 maintainers = with maintainers; [ dotlambda ]; 42 }; 43}