My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nomicon/pkgs/development/python-modules/fakeredis/default.nix

56 lines
910 B

{ lib
, aioredis
, async_generator
, buildPythonPackage
, fetchPypi
, hypothesis
, lupa
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, redis
, six
, sortedcontainers
}:
buildPythonPackage rec {
pname = "fakeredis";
version = "1.7.1";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-fCxLobQuCnUzfFS3d78GcQVrRWllDj/5J+S5s4WvyOw=";
};
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 ];
};
}