nixpkgs/pkgs/development/python-modules/aioredis/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
764 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, async-timeout
, typing-extensions
, hiredis
, isPyPy
, pythonOlder
2019-09-23 10:23:44 +00:00
}:
buildPythonPackage rec {
pname = "aioredis";
version = "2.0.1";
2019-09-23 10:23:44 +00:00
disabled = pythonOlder "3.6";
2019-09-23 10:23:44 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "eaa51aaf993f2d71f54b70527c440437ba65340588afeb786cd87c55c89cd98e";
2019-09-23 10:23:44 +00:00
};
propagatedBuildInputs = [
async-timeout
typing-extensions
] ++ lib.optional (!isPyPy) hiredis;
2019-09-23 10:23:44 +00:00
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
doCheck = false;
meta = with lib; {
2019-09-23 10:23:44 +00:00
description = "Asyncio (PEP 3156) Redis client library";
homepage = "https://github.com/aio-libs/aioredis";
2019-09-23 10:23:44 +00:00
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}