2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchpatch
|
2021-09-18 10:52:07 +00:00
|
|
|
, fetchPypi
|
|
|
|
, async-timeout
|
|
|
|
, typing-extensions
|
|
|
|
, hiredis
|
|
|
|
, isPyPy
|
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioredis";
|
2022-02-10 20:34:41 +00:00
|
|
|
version = "2.0.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-6qUar5k/LXH1S3BSfEQEN7plNAWIr+t4bNh8Vcic2Y4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
patches = [
|
|
|
|
# https://github.com/aio-libs-abandoned/aioredis-py/pull/1490
|
|
|
|
(fetchpatch {
|
|
|
|
name = "python-3.11-compatibility.patch";
|
|
|
|
url = "https://github.com/aio-libs-abandoned/aioredis-py/commit/1b951502dc8f149fa66beafeea40c782f1c5c1d3.patch";
|
|
|
|
hash = "sha256-EqkiYktxISg0Rv4ShXOksGvuUyljPxjJsfNOVaaax2o=";
|
|
|
|
includes = [ "aioredis/exceptions.py" ];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
async-timeout
|
2021-09-18 10:52:07 +00:00
|
|
|
typing-extensions
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional (!isPyPy) hiredis;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Asyncio (PEP 3156) Redis client library";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/aio-libs-abandoned/aioredis-py";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ mmai ];
|
|
|
|
};
|
|
|
|
}
|