1{ lib 2, fetchFromGitHub 3, pythonOlder 4, buildPythonPackage 5, django 6, redis 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "django-redis"; 12 version = "5.0.0"; 13 format = "setuptools"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 owner = "jazzband"; 18 repo = "django-redis"; 19 rev = version; 20 sha256 = "1np10hfyg4aamlz7vav9fy80gynb1lhl2drqkbckr3gg1gbz6crj"; 21 }; 22 23 postPatch = '' 24 sed -i '/-cov/d' setup.cfg 25 ''; 26 27 propagatedBuildInputs = [ 28 django 29 redis 30 ]; 31 32 pythonImportsCheck = [ 33 "django_redis" 34 ]; 35 36 checkInputs = [ 37 pytestCheckHook 38 ]; 39 40 disabledTestPaths = [ 41 "tests/test_backend.py" # django.core.exceptions.ImproperlyConfigured: Requested setting DJANGO_REDIS_SCAN_ITERSIZE, but settings are not configured. 42 ]; 43 44 meta = with lib; { 45 description = "Full featured redis cache backend for Django"; 46 homepage = "https://github.com/jazzband/django-redis"; 47 license = licenses.bsd3; 48 maintainers = with maintainers; [ hexa ]; 49 }; 50}