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

37 lines
764 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, async-timeout
, typing-extensions
, hiredis
, isPyPy
, pythonOlder
2019-09-23 11:23:44 +01:00
}:
buildPythonPackage rec {
pname = "aioredis";
version = "2.0.0";
2019-09-23 11:23:44 +01:00
disabled = pythonOlder "3.6";
2019-09-23 11:23:44 +01:00
src = fetchPypi {
inherit pname version;
sha256 = "3a2de4b614e6a5f8e104238924294dc4e811aefbe17ddf52c04a93cbf06e67db";
2019-09-23 11:23:44 +01:00
};
propagatedBuildInputs = [
async-timeout
typing-extensions
] ++ 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;
meta = with lib; {
2019-09-23 11:23:44 +01:00
description = "Asyncio (PEP 3156) Redis client library";
homepage = "https://github.com/aio-libs/aioredis";
2019-09-23 11:23:44 +01:00
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}