2021-03-08 23:23:34 +00:00
|
|
|
{ lib
|
|
|
|
, aioredis
|
|
|
|
, buildPythonPackage
|
2022-05-29 16:18:12 +00:00
|
|
|
, fetchFromGitHub
|
2021-03-08 23:23:34 +00:00
|
|
|
, hypothesis
|
|
|
|
, lupa
|
2022-05-29 16:18:12 +00:00
|
|
|
, poetry-core
|
2021-03-08 23:23:34 +00:00
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
2022-05-29 16:18:12 +00:00
|
|
|
, pytest-mock
|
2021-03-08 23:23:34 +00:00
|
|
|
, pythonOlder
|
|
|
|
, redis
|
|
|
|
, six
|
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fakeredis";
|
2022-12-25 16:34:28 +00:00
|
|
|
version = "2.4.0";
|
2022-01-17 02:10:56 +00:00
|
|
|
format = "pyproject";
|
2021-11-29 08:20:09 +00:00
|
|
|
|
2022-01-26 12:33:16 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2021-03-08 23:23:34 +00:00
|
|
|
|
2022-05-29 16:18:12 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dsoftwareinc";
|
|
|
|
repo = "fakeredis-py";
|
2022-06-07 14:28:49 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-12-25 16:34:28 +00:00
|
|
|
hash = "sha256-LKUDwx3EEcOQFhUjTe5xm3AQRuwTGsYY27Vmg2R9ofc=";
|
2021-03-08 23:23:34 +00:00
|
|
|
};
|
|
|
|
|
2022-05-29 16:18:12 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
2022-04-12 21:48:12 +00:00
|
|
|
|
2021-03-08 23:23:34 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
redis
|
|
|
|
six
|
|
|
|
sortedcontainers
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
hypothesis
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-05-29 16:18:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
lua = [
|
|
|
|
lupa
|
|
|
|
];
|
|
|
|
aioredis = [
|
|
|
|
aioredis
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2021-11-29 08:20:09 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"fakeredis"
|
|
|
|
];
|
2021-03-08 23:23:34 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fake implementation of Redis API";
|
2022-05-29 16:18:12 +00:00
|
|
|
homepage = "https://github.com/dsoftwareinc/fakeredis-py";
|
2022-11-30 20:14:25 +00:00
|
|
|
changelog = "https://github.com/cunla/fakeredis-py/releases/tag/v${version}";
|
2021-03-08 23:23:34 +00:00
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|