2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hypothesis,
|
|
|
|
jsonpath-ng,
|
|
|
|
lupa,
|
|
|
|
poetry-core,
|
|
|
|
pybloom-live,
|
|
|
|
pyprobables,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-mock,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
redis,
|
|
|
|
sortedcontainers,
|
2021-03-09 03:18:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fakeredis";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.23.0";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-06 16:07:01 +00:00
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsoftwareinc";
|
|
|
|
repo = "fakeredis-py";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-qiqJO8uZ3vy9TpTHmExlUoQ78avPVqlKn0jgvDsKdP0=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ poetry-core ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
dependencies = [
|
2021-03-09 03:18:52 +00:00
|
|
|
redis
|
|
|
|
sortedcontainers
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-03-09 03:18:52 +00:00
|
|
|
hypothesis
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2024-05-15 15:35:15 +00:00
|
|
|
lua = [ lupa ];
|
|
|
|
json = [ jsonpath-ng ];
|
|
|
|
bf = [ pyprobables ];
|
|
|
|
cf = [ pyprobables ];
|
|
|
|
probabilistic = [ pyprobables ];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "fakeredis" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_command"
|
2021-12-06 16:07:01 +00:00
|
|
|
];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fake implementation of Redis API";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/dsoftwareinc/fakeredis-py";
|
2022-12-02 08:20:57 +00:00
|
|
|
changelog = "https://github.com/cunla/fakeredis-py/releases/tag/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
license = with licenses; [ bsd3 ];
|
2021-03-09 03:18:52 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|