1{ stdenv
2, buildPythonPackage
3, fetchPypi
4, redis
5, python
6}:
7
8buildPythonPackage rec {
9 pname = "hiredis";
10 version = "1.1.0";
11
12 src = fetchPypi {
13 inherit pname version;
14 sha256 = "996021ef33e0f50b97ff2d6b5f422a0fe5577de21a8873b58a779a5ddd1c3132";
15 };
16 propagatedBuildInputs = [ redis ];
17
18 checkPhase = ''
19 mv hiredis _hiredis
20 ${python.interpreter} test.py
21 '';
22 pythonImportsCheck = [ "hiredis" ];
23
24 meta = with stdenv.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