Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 712 B view raw
1{ stdenv, buildPythonPackage, fetchPypi 2, pkgs, async-timeout, hiredis, isPyPy, isPy27 3}: 4 5buildPythonPackage rec { 6 pname = "aioredis"; 7 version = "1.3.1"; 8 9 disabled = isPy27; 10 11 src = fetchPypi { 12 inherit pname version; 13 sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m"; 14 }; 15 16 propagatedBuildInputs = [ 17 async-timeout 18 ] ++ stdenv.lib.optional (!isPyPy) hiredis; 19 20 # Wants to run redis-server, hardcoded FHS paths, too much trouble. 21 doCheck = false; 22 23 meta = with stdenv.lib; { 24 description = "Asyncio (PEP 3156) Redis client library"; 25 homepage = "https://github.com/aio-libs/aioredis"; 26 license = licenses.mit; 27 maintainers = with maintainers; [ mmai ]; 28 }; 29}