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.5.0";
20 disabled = pythonOlder "3.5";
21
22 src = fetchPypi {
23 inherit pname version;
24 sha256 = "1ac0cef767c37f51718874a33afb5413e69d132988cb6a80c6e6dbeddf8c7623";
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 pythonImportsCheck = [ "fakeredis" ];
44
45 meta = with lib; {
46 description = "Fake implementation of Redis API";
47 homepage = "https://github.com/jamesls/fakeredis";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}