Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 78 lines
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879{ lib, async-timeout, buildPythonPackage, setuptools, versioneer, deprecated, fetchFromGitHub, packaging, pympler, pytest-asyncio, pytest-lazy-fixtures, pytestCheckHook, redis, typing-extensions, wrapt,}:
buildPythonPackage rec { pname = "coredis"; version = "4.23.1"; pyproject = true;
src = fetchFromGitHub { owner = "alisaifee"; repo = "coredis"; tag = version; hash = "sha256-5Ho9X2VCOwKo079M2ReJ93jqEpG2ZV6vKM5/qrgzjxM="; };
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 = [ setuptools versioneer ];
dependencies = [ async-timeout 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; teams = [ lib.teams.wdz ]; };}