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