2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
72 lines
1.2 KiB
Nix
72 lines
1.2 KiB
Nix
{ lib
|
|
, aioredis
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hypothesis
|
|
, lupa
|
|
, poetry-core
|
|
, pybloom-live
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
, six
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "2.20.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dsoftwareinc";
|
|
repo = "fakeredis-py";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pRvUgK4OXVP2GR+Iu4ddqwApw0gYN4FkKjTpwbC1oWM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
poetry-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
redis
|
|
six
|
|
sortedcontainers
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
hypothesis
|
|
pytest-asyncio
|
|
pytest-mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
lua = [
|
|
lupa
|
|
];
|
|
aioredis = [
|
|
aioredis
|
|
];
|
|
bf = [
|
|
pybloom-live
|
|
];
|
|
};
|
|
|
|
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; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|