Merge pull request #252356 from tjni/aioredis

python311Packages.aioredis: fetch patch for python 3.11 compatibility

authored by

OTABI Tomoya and committed by
GitHub
0f086eac ef6b0e46

+14 -2
+14 -2
pkgs/development/python-modules/aioredis/default.nix
··· 1 1 { lib 2 2 , buildPythonPackage 3 + , fetchpatch 3 4 , fetchPypi 4 5 , async-timeout 5 6 , typing-extensions ··· 11 12 buildPythonPackage rec { 12 13 pname = "aioredis"; 13 14 version = "2.0.1"; 15 + format = "setuptools"; 14 16 15 17 disabled = pythonOlder "3.6"; 16 18 17 19 src = fetchPypi { 18 20 inherit pname version; 19 - sha256 = "eaa51aaf993f2d71f54b70527c440437ba65340588afeb786cd87c55c89cd98e"; 21 + hash = "sha256-6qUar5k/LXH1S3BSfEQEN7plNAWIr+t4bNh8Vcic2Y4="; 20 22 }; 21 23 24 + patches = [ 25 + # https://github.com/aio-libs-abandoned/aioredis-py/pull/1490 26 + (fetchpatch { 27 + name = "python-3.11-compatibility.patch"; 28 + url = "https://github.com/aio-libs-abandoned/aioredis-py/commit/1b951502dc8f149fa66beafeea40c782f1c5c1d3.patch"; 29 + hash = "sha256-EqkiYktxISg0Rv4ShXOksGvuUyljPxjJsfNOVaaax2o="; 30 + includes = [ "aioredis/exceptions.py" ]; 31 + }) 32 + ]; 33 + 22 34 propagatedBuildInputs = [ 23 35 async-timeout 24 36 typing-extensions ··· 29 41 30 42 meta = with lib; { 31 43 description = "Asyncio (PEP 3156) Redis client library"; 32 - homepage = "https://github.com/aio-libs/aioredis"; 44 + homepage = "https://github.com/aio-libs-abandoned/aioredis-py"; 33 45 license = licenses.mit; 34 46 maintainers = with maintainers; [ mmai ]; 35 47 };