Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.03 29 lines 627 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, redis 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "hiredis"; 10 version = "1.0.1"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "aa59dd63bb3f736de4fc2d080114429d5d369dfb3265f771778e8349d67a97a4"; 15 }; 16 propagatedBuildInputs = [ redis ]; 17 18 checkPhase = '' 19 ${python.interpreter} test.py 20 ''; 21 22 meta = with stdenv.lib; { 23 description = "Wraps protocol parsing code in hiredis, speeds up parsing of multi bulk replies"; 24 homepage = "https://github.com/redis/hiredis-py"; 25 license = licenses.bsd3; 26 maintainers = with maintainers; [ mmai ]; 27 }; 28} 29