Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 71 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172{ lib, buildPythonPackage, fetchFromGitHub, hypothesis, jsonpath-ng, lupa, poetry-core, pyprobables, pytest-asyncio, pytest-mock, pytestCheckHook, pythonOlder, redis, redisTestHook, sortedcontainers,}:
buildPythonPackage rec { pname = "fakeredis"; version = "2.29.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "dsoftwareinc"; repo = "fakeredis-py"; tag = "v${version}"; hash = "sha256-wBUsoPmTIE3VFvmMnW4B9Unw/V63dIvsBTYCloElamA="; };
build-system = [ poetry-core ];
dependencies = [ redis sortedcontainers ];
optional-dependencies = { lua = [ lupa ]; json = [ jsonpath-ng ]; bf = [ pyprobables ]; cf = [ pyprobables ]; probabilistic = [ pyprobables ]; };
nativeCheckInputs = [ hypothesis pytest-asyncio pytest-mock pytestCheckHook redisTestHook ];
pythonImportsCheck = [ "fakeredis" ];
disabledTestMarks = [ "slow" ];
preCheck = '' redisTestPort=6390 '';
meta = with lib; { description = "Fake implementation of Redis API"; homepage = "https://github.com/dsoftwareinc/fakeredis-py"; changelog = "https://github.com/cunla/fakeredis-py/releases/tag/v${version}"; license = with licenses; [ bsd3 ]; maintainers = with maintainers; [ fab ]; };}