3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/aioredis/default.nix
2021-09-05 14:58:57 +02:00

37 lines
764 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, async-timeout
, typing-extensions
, hiredis
, isPyPy
, pythonOlder
}:
buildPythonPackage rec {
pname = "aioredis";
version = "2.0.0";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "3a2de4b614e6a5f8e104238924294dc4e811aefbe17ddf52c04a93cbf06e67db";
};
propagatedBuildInputs = [
async-timeout
typing-extensions
] ++ 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 ];
};
}