a25115f1a6
https://github.com/alisaifee/coredis/blob/5.6.0/HISTORY.rst This commit was automatically generated using update-python-libraries.
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{
|
|
lib,
|
|
async-timeout,
|
|
beartype,
|
|
buildPythonPackage,
|
|
hatchling,
|
|
hatch-mypyc,
|
|
hatch-vcs,
|
|
types-deprecated,
|
|
deprecated,
|
|
fetchFromGitHub,
|
|
packaging,
|
|
pympler,
|
|
pytest-asyncio,
|
|
pytest-lazy-fixtures,
|
|
pytestCheckHook,
|
|
redis,
|
|
typing-extensions,
|
|
wrapt,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "coredis";
|
|
version = "5.6.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "alisaifee";
|
|
repo = "coredis";
|
|
tag = version;
|
|
hash = "sha256-84mFHEPvCv7c1u2giTwTmC+56KCB/3snl8vJ4c+sE2s=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/mypy==/d' pyproject.toml
|
|
sed -i '/packaging/d' pyproject.toml
|
|
sed -i '/pympler/d' pyproject.toml
|
|
sed -i '/types_deprecated/d' pyproject.toml
|
|
substituteInPlace pytest.ini \
|
|
--replace-fail "-K" ""
|
|
'';
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-mypyc
|
|
hatch-vcs
|
|
types-deprecated
|
|
];
|
|
|
|
dependencies = [
|
|
async-timeout
|
|
beartype
|
|
deprecated
|
|
packaging
|
|
pympler
|
|
typing-extensions
|
|
wrapt
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
redis
|
|
pytest-asyncio
|
|
pytest-lazy-fixtures
|
|
];
|
|
|
|
pythonImportsCheck = [ "coredis" ];
|
|
|
|
enabledTestPaths = [
|
|
# All other tests require Docker
|
|
"tests/test_lru_cache.py"
|
|
"tests/test_parsers.py"
|
|
"tests/test_retry.py"
|
|
"tests/test_utils.py"
|
|
];
|
|
|
|
meta = {
|
|
description = "Async redis client with support for redis server, cluster & sentinel";
|
|
homepage = "https://github.com/alisaifee/coredis";
|
|
changelog = "https://github.com/alisaifee/coredis/blob/${src.tag}/HISTORY.rst";
|
|
license = lib.licenses.mit;
|
|
};
|
|
}
|