b450903751
GitOrigin-RevId: 74a1793c659d09d7cf738005308b1f86c90cb59b
67 lines
1.1 KiB
Nix
67 lines
1.1 KiB
Nix
{ lib
|
|
, aioredis
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hypothesis
|
|
, lupa
|
|
, poetry-core
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
, pytest-mock
|
|
, pythonOlder
|
|
, redis
|
|
, six
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "1.9.1";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsoftwareinc";
|
|
repo = "fakeredis-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3jsTNwxUZzkNxutYqK8lI37Cexrii6QydikW/TkUqbk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
six
|
|
sortedcontainers
|
|
];
|
|
|
|
checkInputs = [
|
|
hypothesis
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
lua = [
|
|
lupa
|
|
];
|
|
aioredis = [
|
|
aioredis
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"fakeredis"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Fake implementation of Redis API";
|
|
homepage = "https://github.com/dsoftwareinc/fakeredis-py";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|