2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-09 03:18:52 +00:00
|
|
|
, hypothesis
|
2024-04-21 15:54:59 +00:00
|
|
|
, jsonpath-ng
|
2021-03-09 03:18:52 +00:00
|
|
|
, lupa
|
2022-06-16 17:23:12 +00:00
|
|
|
, poetry-core
|
2023-10-19 13:55:26 +00:00
|
|
|
, pybloom-live
|
2024-02-29 20:09:43 +00:00
|
|
|
, pyprobables
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-asyncio
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytest-mock
|
2023-10-19 13:55:26 +00:00
|
|
|
, pytestCheckHook
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, redis
|
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fakeredis";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.21.3";
|
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-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-GIg+a8G5S0dmbvMKqS/Vn+wzNM6iNIs3bKPqhecsQt4=";
|
2021-03-09 03:18:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2021-03-09 03:18:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
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 = {
|
|
|
|
lua = [
|
|
|
|
lupa
|
|
|
|
];
|
2024-04-21 15:54:59 +00:00
|
|
|
json = [
|
|
|
|
jsonpath-ng
|
2022-06-16 17:23:12 +00:00
|
|
|
];
|
2023-10-19 13:55:26 +00:00
|
|
|
bf = [
|
2024-02-29 20:09:43 +00:00
|
|
|
pyprobables
|
|
|
|
];
|
|
|
|
cf = [
|
|
|
|
pyprobables
|
|
|
|
];
|
|
|
|
probabilistic = [
|
|
|
|
pyprobables
|
2023-10-19 13:55:26 +00:00
|
|
|
];
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fakeredis"
|
|
|
|
];
|
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 ];
|
|
|
|
};
|
|
|
|
}
|