841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
51 lines
894 B
Nix
51 lines
894 B
Nix
{ lib
|
|
, aioredis
|
|
, async_generator
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, lupa
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
, six
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "1.5.2";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "18fc1808d2ce72169d3f11acdb524a00ef96bd29970c6d34cfeb2edb3fc0c020";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
aioredis
|
|
lupa
|
|
redis
|
|
six
|
|
sortedcontainers
|
|
];
|
|
|
|
checkInputs = [
|
|
async_generator
|
|
hypothesis
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|