2021-03-08 23:23:34 +00:00
|
|
|
{ lib
|
|
|
|
, aioredis
|
|
|
|
, async_generator
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, hypothesis
|
|
|
|
, lupa
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytest-mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, redis
|
|
|
|
, six
|
|
|
|
, sortedcontainers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fakeredis";
|
2021-09-03 07:20:14 +00:00
|
|
|
version = "1.6.0";
|
2021-03-08 23:23:34 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-26 19:32:33 +00:00
|
|
|
sha256 = "11ccfc9769d718d37e45b382e64a6ba02586b622afa0371a6bd85766d72255f3";
|
2021-03-08 23:23:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aioredis
|
|
|
|
lupa
|
|
|
|
redis
|
|
|
|
six
|
|
|
|
sortedcontainers
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
async_generator
|
|
|
|
hypothesis
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2021-09-03 07:20:14 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Missing support for later pytest-asyncio, https://github.com/jamesls/fakeredis/issues/307
|
|
|
|
"test/test_aioredis1.py"
|
|
|
|
];
|
|
|
|
|
2021-03-08 23:23:34 +00:00
|
|
|
pythonImportsCheck = [ "fakeredis" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fake implementation of Redis API";
|
|
|
|
homepage = "https://github.com/jamesls/fakeredis";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|