Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, anyio, beartype, buildPythonPackage, hatchling, hatch-mypyc, hatch-vcs, types-deprecated, deprecated, exceptiongroup, fetchFromGitHub, packaging, pytest-asyncio, pytest-lazy-fixtures, pytest-mock, pytestCheckHook, redis, typing-extensions,}:
buildPythonPackage (finalAttrs: { pname = "coredis"; version = "6.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "alisaifee"; repo = "coredis"; tag = finalAttrs.version; hash = "sha256-1Ks8rfOaz7rZruzp1k3V7UHCtckzomvA76+QRS7RlZo="; };
postPatch = '' sed -i '/mypy==/d' pyproject.toml sed -i '/hatch-mypy/d' pyproject.toml sed -i '/opentelemetry-sdk/d' pyproject.toml substituteInPlace pyproject.toml \ --replace-fail '"-K"' "" '';
build-system = [ hatchling hatch-mypyc hatch-vcs types-deprecated ];
dependencies = [ anyio beartype deprecated exceptiongroup packaging typing-extensions ];
nativeCheckInputs = [ pytestCheckHook redis pytest-asyncio pytest-lazy-fixtures pytest-mock ];
pythonImportsCheck = [ "coredis" ];
enabledTestPaths = [ # All other tests require Docker "tests/test_lru_cache.py" "tests/test_parsers.py" "tests/test_retry.py" "tests/test_utils.py" ];
meta = { description = "Async redis client with support for redis server, cluster & sentinel"; homepage = "https://github.com/alisaifee/coredis"; changelog = "https://github.com/alisaifee/coredis/blob/${finalAttrs.src.tag}/HISTORY.rst"; license = lib.licenses.mit; };})