1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6
7 # tested using
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "hiredis";
13 version = "2.3.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.6";
17
18 src = fetchFromGitHub {
19 owner = "redis";
20 repo = "hiredis-py";
21 rev = "refs/tags/v${version}";
22 fetchSubmodules = true;
23 hash = "sha256-7hTGXHNECy+dSsop0ULsNZvGFecCIEv+q46s7t/K7k8=";
24 };
25
26 pythonImportsCheck = [ "hiredis" ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 preCheck = ''
31 rm -rf hiredis
32 '';
33
34 meta = with lib; {
35 description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies";
36 homepage = "https://github.com/redis/hiredis-py";
37 changelog = "https://github.com/redis/hiredis-py/blob/v${version}/CHANGELOG.md";
38 license = licenses.bsd3;
39 maintainers = with maintainers; [ mmai ];
40 };
41}