f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
69 lines
1.3 KiB
Nix
69 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hypothesis,
|
|
jsonpath-ng,
|
|
lupa,
|
|
poetry-core,
|
|
pybloom-live,
|
|
pyprobables,
|
|
pytest-asyncio,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
redis,
|
|
sortedcontainers,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "2.23.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsoftwareinc";
|
|
repo = "fakeredis-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-U+jLxI2Ly+LvC/0eGXdaAa6iqDFfu5n8X0UrTWFRhhE=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
redis
|
|
sortedcontainers
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
lua = [ lupa ];
|
|
json = [ jsonpath-ng ];
|
|
bf = [ pyprobables ];
|
|
cf = [ pyprobables ];
|
|
probabilistic = [ pyprobables ];
|
|
};
|
|
|
|
pythonImportsCheck = [ "fakeredis" ];
|
|
|
|
disabledTests = [
|
|
# AssertionError
|
|
"test_command"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|