mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-31 12:44:44 +00:00
53 lines
1.2 KiB
Nix
53 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
setuptools,
|
|
async-timeout,
|
|
typing-extensions,
|
|
hiredis,
|
|
isPyPy,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "aioredis";
|
|
version = "2.0.1";
|
|
pyproject = true;
|
|
|
|
__structuredAttrs = true;
|
|
|
|
src = fetchPypi {
|
|
inherit (finalAttrs) 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" ];
|
|
})
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
async-timeout
|
|
typing-extensions
|
|
]
|
|
++ lib.optional (!isPyPy) hiredis;
|
|
|
|
# Wants to run redis-server, hardcoded FHS paths, too much trouble.
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Asyncio (PEP 3156) Redis client library";
|
|
homepage = "https://github.com/aio-libs-abandoned/aioredis-py";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ ];
|
|
};
|
|
})
|