2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, redis
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hiredis";
|
2020-09-25 04:45:31 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-09-25 04:45:31 +00:00
|
|
|
sha256 = "996021ef33e0f50b97ff2d6b5f422a0fe5577de21a8873b58a779a5ddd1c3132";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
propagatedBuildInputs = [ redis ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-09-25 04:45:31 +00:00
|
|
|
mv hiredis _hiredis
|
2020-04-24 23:36:52 +00:00
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
pythonImportsCheck = [ "hiredis" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
|
|
|
|
homepage = "https://github.com/redis/hiredis-py";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|