1{ lib 2, aioredis 3, async_generator 4, buildPythonPackage 5, fetchPypi 6, hypothesis 7, lupa 8, pytest-asyncio 9, pytest-mock 10, pytestCheckHook 11, pythonOlder 12, redis 13, six 14, sortedcontainers 15}: 16 17buildPythonPackage rec { 18 pname = "fakeredis"; 19 version = "1.6.1"; 20 disabled = pythonOlder "3.5"; 21 22 src = fetchPypi { 23 inherit pname version; 24 sha256 = "sha256-DQapOE+3nanyFkzpbjTrnU4upGIVBwgF6m/TwXRZC0c="; 25 }; 26 27 propagatedBuildInputs = [ 28 aioredis 29 lupa 30 redis 31 six 32 sortedcontainers 33 ]; 34 35 checkInputs = [ 36 async_generator 37 hypothesis 38 pytest-asyncio 39 pytest-mock 40 pytestCheckHook 41 ]; 42 43 disabledTestPaths = [ 44 # AttributeError: 'AsyncGenerator' object has no attribute XXXX 45 "test/test_aioredis2.py" 46 ]; 47 48 pythonImportsCheck = [ "fakeredis" ]; 49 50 meta = with lib; { 51 description = "Fake implementation of Redis API"; 52 homepage = "https://github.com/jamesls/fakeredis"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ]; 55 }; 56}