forked from mirrors/nixpkgs
python3Packages.hiredis: drop redis dependency
This commit is contained in:
parent
5b3ce8454a
commit
b4e398b9ce
|
@ -1,25 +1,30 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, redis
|
||||
, pythonOlder
|
||||
|
||||
# tested using
|
||||
, python
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hiredis";
|
||||
version = "2.0.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "81d6d8e39695f2c37954d1011c0480ef7cf444d4e3ae24bc5e89ee5de360139a";
|
||||
};
|
||||
propagatedBuildInputs = [ redis ];
|
||||
|
||||
pythonImportsCheck = [ "hiredis" ];
|
||||
|
||||
checkPhase = ''
|
||||
mv hiredis _hiredis
|
||||
${python.interpreter} test.py
|
||||
'';
|
||||
pythonImportsCheck = [ "hiredis" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
|
||||
|
|
Loading…
Reference in a new issue