Files
nixpkgs/pkgs/development/python-modules/aioredis/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

51 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchpatch,
fetchPypi,
async-timeout,
typing-extensions,
hiredis,
isPyPy,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aioredis";
version = "2.0.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-6qUar5k/LXH1S3BSfEQEN7plNAWIr+t4bNh8Vcic2Y4=";
};
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" ];
})
];
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-abandoned/aioredis-py";
license = licenses.mit;
maintainers = with maintainers; [ mmai ];
};
}