c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
77 lines
1.3 KiB
Nix
77 lines
1.3 KiB
Nix
{ lib
|
|
, aioredis
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hypothesis
|
|
, lupa
|
|
, poetry-core
|
|
, pybloom-live
|
|
, pyprobables
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "2.21.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsoftwareinc";
|
|
repo = "fakeredis-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-2+ZZTWhUb6rj7oWPnDP0PJUHj0CJpOD8iZxmtO4xSbo=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
sortedcontainers
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
lua = [
|
|
lupa
|
|
];
|
|
aioredis = [
|
|
aioredis
|
|
];
|
|
bf = [
|
|
pyprobables
|
|
];
|
|
cf = [
|
|
pyprobables
|
|
];
|
|
probabilistic = [
|
|
pyprobables
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"fakeredis"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Fake implementation of Redis API";
|
|
homepage = "https://github.com/dsoftwareinc/fakeredis-py";
|
|
changelog = "https://github.com/cunla/fakeredis-py/releases/tag/v${version}";
|
|
license = with licenses; [ bsd3 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|