summary refs log blame commit diff
path: root/pkgs/development/python-modules/aioredis/default.nix
blob: fe48ba0e1e184374a8f88cb7c14c97336312f3ad (plain) (tree)
1
2
3
4
5
6
7
                                    




                                              
                    




                          
                                                                    



                           
                                      



                                                                     
                    
                                                            
                                                      



                                             
{ lib, buildPythonPackage, fetchPypi
, pkgs, async-timeout, hiredis, isPyPy, isPy27
}:

buildPythonPackage rec {
  pname = "aioredis";
  version = "1.3.1";

  disabled = isPy27;

  src = fetchPypi {
    inherit pname version;
    sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m";
  };

  propagatedBuildInputs = [
    async-timeout
  ] ++ lib.optional (!isPyPy) hiredis;

  # Wants to run redis-server, hardcoded FHS paths, too much trouble.
  doCheck = false;

  meta = with lib; {
    description = "Asyncio (PEP 3156) Redis client library";
    homepage = "https://github.com/aio-libs/aioredis";
    license = licenses.mit;
    maintainers = with maintainers; [ mmai ];
  };
}