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