2021-03-09 03:18:52 +00:00
|
|
|
{ lib
|
|
|
|
, aioredis
|
|
|
|
, buildPythonPackage
|
2022-06-16 17:23:12 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-09 03:18:52 +00:00
|
|
|
, hypothesis
|
|
|
|
, lupa
|
2022-06-16 17:23:12 +00:00
|
|
|
, poetry-core
|
2021-03-09 03:18:52 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, pytest-mock
|
2021-03-09 03:18:52 +00:00
|
|
|
, pythonOlder
|
|
|
|
, redis
|
|
|
|
, six
|
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fakeredis";
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "2.8.0";
|
2022-02-10 20:34:41 +00:00
|
|
|
format = "pyproject";
|
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}";
|
2023-02-16 17:41:37 +00:00
|
|
|
hash = "sha256-QOARAT1XSoW/PJli6BzNOZZJjiSubz8zqndEHZCCqag=";
|
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
|
|
|
|
six
|
|
|
|
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
|
|
|
|
];
|
|
|
|
aioredis = [
|
|
|
|
aioredis
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
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}";
|
2021-03-09 03:18:52 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|