diff --git a/pkgs/development/python-modules/coredis/default.nix b/pkgs/development/python-modules/coredis/default.nix index eb2c9e5cae9f..13fbe5ab123d 100644 --- a/pkgs/development/python-modules/coredis/default.nix +++ b/pkgs/development/python-modules/coredis/default.nix @@ -1,13 +1,14 @@ { lib -, fetchFromGitHub -, buildPythonPackage , async-timeout +, buildPythonPackage , deprecated +, fetchFromGitHub , pympler -, wrapt -, pytestCheckHook -, redis , pytest-asyncio +, pytestCheckHook +, pythonOlder +, redis +, wrapt }: buildPythonPackage rec { @@ -15,15 +16,18 @@ buildPythonPackage rec { version = "4.15.1"; format = "setuptools"; + disabled = pythonOlder "3.8"; + src = fetchFromGitHub { owner = "alisaifee"; repo = pname; - rev = version; + rev = "refs/tags/${version}"; hash = "sha256-9nojHufUt53Ovoos4gaR7qh1xN8D1+gJOEyFsOndXJU="; }; postPatch = '' - substituteInPlace pytest.ini --replace "-K" "" + substituteInPlace pytest.ini \ + --replace "-K" "" ''; propagatedBuildInputs = [ @@ -33,16 +37,18 @@ buildPythonPackage rec { wrapt ]; - pythonImportsCheck = [ "coredis" ]; - nativeCheckInputs = [ pytestCheckHook redis pytest-asyncio ]; - # all other tests require docker + pythonImportsCheck = [ + "coredis" + ]; + pytestFlagsArray = [ + # All other tests require Docker "tests/test_lru_cache.py" "tests/test_parsers.py" "tests/test_retry.py" @@ -50,9 +56,9 @@ buildPythonPackage rec { ]; meta = with lib; { - changelog = "https://github.com/alisaifee/coredis/blob/${src.rev}/HISTORY.rst"; - homepage = "https://github.com/alisaifee/coredis"; 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 = with maintainers; [ netali ]; };