1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchpatch,
|
|
fetchPypi,
|
|
async-timeout,
|
|
typing-extensions,
|
|
hiredis,
|
|
isPyPy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioredis";
|
|
version = "2.0.1";
|
|
format = "setuptools";
|
|
|
|
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 = {
|
|
description = "Asyncio (PEP 3156) Redis client library";
|
|
homepage = "https://github.com/aio-libs-abandoned/aioredis-py";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ mmai ];
|
|
};
|
|
}
|