2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, buildPythonPackage, fetchPypi
|
2019-09-23 11:23:44 +01:00
|
|
|
, pkgs, async-timeout, hiredis, isPyPy, isPy27
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioredis";
|
2019-12-09 02:50:26 +00:00
|
|
|
version = "1.3.1";
|
2019-09-23 11:23:44 +01:00
|
|
|
|
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-09 02:50:26 +00:00
|
|
|
sha256 = "0fi7jd5hlx8cnv1m97kv9hc4ih4l8v15wzkqwsp73is4n0qazy0m";
|
2019-09-23 11:23:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
2021-01-24 00:29:22 +00:00
|
|
|
] ++ lib.optional (!isPyPy) hiredis;
|
2019-09-23 11:23:44 +01:00
|
|
|
|
|
|
|
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-09-23 11:23:44 +01:00
|
|
|
description = "Asyncio (PEP 3156) Redis client library";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aio-libs/aioredis";
|
2019-09-23 11:23:44 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|