mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-06 18:26:45 +01:00
57 lines
1,008 B
Nix
57 lines
1,008 B
Nix
{ lib
|
|
, aioredis
|
|
, async_generator
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, hypothesis
|
|
, lupa
|
|
, pytest-asyncio
|
|
, pytest-mock
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, redis
|
|
, six
|
|
, sortedcontainers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fakeredis";
|
|
version = "1.6.1";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-DQapOE+3nanyFkzpbjTrnU4upGIVBwgF6m/TwXRZC0c=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|