depot/third_party/nixpkgs/pkgs/development/python-modules/aioredis/default.nix
Default email 81047829ea Project import generated by Copybara.
GitOrigin-RevId: 48d63e924a2666baf37f4f14a18f19347fbd54a2
2022-02-10 15:34:41 -05:00

36 lines
764 B
Nix

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