23 buildPythonPackage rec {
24 pname = "django-redis";
28 disabled = pythonOlder "3.6";
30 src = fetchFromGitHub {
32 repo = "django-redis";
34 hash = "sha256-m7z3c7My24vrSSnyfDQ/LlWhy7pV4U0L8LATMvkfczc=";
37 build-system = [ setuptools ];
39 propagatedBuildInputs = [
46 optional-dependencies = {
47 hiredis = [ redis ] ++ redis.optional-dependencies.hiredis;
50 pythonImportsCheck = [ "django_redis" ];
53 export DJANGO_SETTINGS_MODULE=tests.settings.sqlite
55 ${pkgs.redis}/bin/redis-server &
68 ] ++ lib.flatten (lib.attrValues optional-dependencies);
72 "ignore::DeprecationWarning"
76 # ModuleNotFoundError: No module named 'test_cache_options'
77 "test_custom_key_function"
78 # ModuleNotFoundError: No module named 'test_client'
79 "test_delete_pattern_calls_delete_for_given_keys"
80 "test_delete_pattern_calls_get_client_given_no_client"
81 "test_delete_pattern_calls_make_pattern"
82 "test_delete_pattern_calls_pipeline_delete_and_execute"
83 "test_delete_pattern_calls_scan_iter"
84 "test_delete_pattern_calls_scan_iter_with_count_if_itersize_given"
87 __darwinAllowLocalNetworking = true;
90 description = "Full featured redis cache backend for Django";
91 homepage = "https://github.com/jazzband/django-redis";
92 changelog = "https://github.com/jazzband/django-redis/releases/tag/${version}";
93 license = licenses.bsd3;
94 maintainers = with maintainers; [ hexa ];