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