Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, redisTestHook,
hatchling, hypothesis, jsonpath-ng, lupa, numpy, pyprobables, pytest-asyncio, pytest-mock, redis, sortedcontainers, valkey,}:
buildPythonPackage (finalAttrs: { pname = "fakeredis"; version = "2.37.0"; pyproject = true;
src = fetchFromGitHub { owner = "cunla"; repo = "fakeredis-py"; tag = "v${finalAttrs.version}"; hash = "sha256-5J7MJGKaiN/360xH89W58rOVVlhWxY9+P7X54wBGaKA="; };
build-system = [ hatchling ];
dependencies = [ redis sortedcontainers ];
optional-dependencies = { lua = [ lupa ]; json = [ jsonpath-ng ]; bf = [ pyprobables ]; cf = [ pyprobables ]; probabilistic = [ pyprobables ]; valkey = [ valkey ]; vectorset = [ jsonpath-ng numpy ]; };
nativeCheckInputs = [ hypothesis pytest-asyncio pytest-mock pytestCheckHook redisTestHook valkey ];
pythonImportsCheck = [ "fakeredis" ];
disabledTestMarks = [ "slow" ];
disabledTests = [ # redis.exceptions.ResponseError: unknown command 'evalsha' "test_async_lock" ];
preCheck = '' redisTestPort=6390 '';
meta = { description = "Fake implementation of Redis API"; homepage = "https://github.com/cunla/fakeredis-py"; changelog = "https://github.com/cunla/fakeredis-py/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ fab ]; };})