2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2019-01-27 10:53:16 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, redis
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "hiredis";
|
2021-08-18 14:22:19 +00:00
|
|
|
version = "2.0.0";
|
2019-01-27 10:53:16 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-18 14:22:19 +00:00
|
|
|
sha256 = "81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a";
|
2019-01-27 10:53:16 +00:00
|
|
|
};
|
|
|
|
propagatedBuildInputs = [ redis ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
2020-09-10 21:07:17 +00:00
|
|
|
mv hiredis _hiredis
|
2019-01-27 10:53:16 +00:00
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
2020-09-10 21:07:17 +00:00
|
|
|
pythonImportsCheck = [ "hiredis" ];
|
2019-01-27 10:53:16 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-01-27 10:53:16 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|