depot/third_party/nixpkgs/pkgs/development/python-modules/fakeredis/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

60 lines
1 KiB
Nix

{ lib
, aioredis
, async_generator
, buildPythonPackage
, fetchPypi
, hypothesis
, lupa
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, pythonOlder
, redis
, six
, sortedcontainers
}:
buildPythonPackage rec {
pname = "fakeredis";
version = "1.7.0";
format = "setuptools";
disabled = pythonOlder "3.5";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-yb0S5DAzbL0+GJ+uDpHrmZl7k+dtv91u1n+jUtxoTHE=";
};
propagatedBuildInputs = [
aioredis
lupa
redis
six
sortedcontainers
];
checkInputs = [
async_generator
hypothesis
pytest-asyncio
pytest-mock
pytestCheckHook
];
disabledTestPaths = [
# AttributeError: 'AsyncGenerator' object has no attribute XXXX
"test/test_aioredis2.py"
];
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 ];
};
}