52 lines
882 B
Nix
52 lines
882 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.4.5";
|
||
|
disabled = pythonOlder "3.5";
|
||
|
|
||
|
src = fetchPypi {
|
||
|
inherit pname version;
|
||
|
sha256 = "0slb23zxn47a4z8b7jq7gq40g4zsn52y9h29zdqs29b85394gjq1";
|
||
|
};
|
||
|
|
||
|
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 ];
|
||
|
};
|
||
|
}
|