at master 950 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pythonOlder, 6 7 # build-system 8 setuptools, 9 10 # tests 11 pytestCheckHook, 12}: 13 14buildPythonPackage rec { 15 pname = "hiredis"; 16 version = "3.2.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.6"; 20 21 src = fetchFromGitHub { 22 owner = "redis"; 23 repo = "hiredis-py"; 24 tag = "v${version}"; 25 fetchSubmodules = true; 26 hash = "sha256-WaHjqp/18FquYU2H9ftPQSyunLMG29FVpu3maB3/0bs="; 27 }; 28 29 build-system = [ setuptools ]; 30 31 pythonImportsCheck = [ "hiredis" ]; 32 33 nativeCheckInputs = [ pytestCheckHook ]; 34 35 preCheck = '' 36 rm -rf hiredis 37 ''; 38 39 meta = with lib; { 40 description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies"; 41 homepage = "https://github.com/redis/hiredis-py"; 42 changelog = "https://github.com/redis/hiredis-py/blob/${src.tag}/CHANGELOG.md"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ mmai ]; 45 }; 46}