Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.3 kB · 65 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566{ lib, async-timeout, buildPythonPackage, deprecated, fetchFromGitHub, pympler, pytest-asyncio, pytestCheckHook, pythonOlder, redis, wrapt}:
buildPythonPackage rec { pname = "coredis"; version = "4.16.0"; format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub { owner = "alisaifee"; repo = pname; rev = "refs/tags/${version}"; hash = "sha256-7qpoNc5/z8/EKtGWULrPPwfH9swYe9TqqUL+zxrFQSk="; };
postPatch = '' substituteInPlace pytest.ini \ --replace "-K" "" '';
propagatedBuildInputs = [ async-timeout deprecated pympler wrapt ];
nativeCheckInputs = [ pytestCheckHook redis pytest-asyncio ];
pythonImportsCheck = [ "coredis" ];
pytestFlagsArray = [ # All other tests require Docker "tests/test_lru_cache.py" "tests/test_parsers.py" "tests/test_retry.py" "tests/test_utils.py" ];
meta = with lib; { description = "An async redis client with support for redis server, cluster & sentinel"; homepage = "https://github.com/alisaifee/coredis"; changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst"; license = licenses.mit; maintainers = teams.wdz.members; };}