1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5
6# tested using
7, python
8}:
9
10buildPythonPackage rec {
11 pname = "hiredis";
12 version = "2.0.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.6";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a";
20 };
21
22 pythonImportsCheck = [ "hiredis" ];
23
24 checkPhase = ''
25 mv hiredis _hiredis
26 ${python.interpreter} test.py
27 '';
28
29 meta = with lib; {
30 description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
31 homepage = "https://github.com/redis/hiredis-py";
32 license = licenses.bsd3;
33 maintainers = with maintainers; [ mmai ];
34 };
35}
36