3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.hiredis: drop redis dependency

This commit is contained in:
Martin Weinelt 2021-12-29 02:12:54 +01:00
parent 5b3ce8454a
commit b4e398b9ce
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -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";