1{ buildPythonPackage 2, fetchPypi 3, lib 4, django 5, funcy 6, redis 7, six 8, pytest-django 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "django-cacheops"; 14 version = "6.1"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "sha256-toTvOf1DQYnTy7fYVBfNlyr2NSiaAyRHmCRztKifcn0="; 19 }; 20 21 propagatedBuildInputs = [ 22 django 23 funcy 24 redis 25 six 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 pytest-django 31 ]; 32 33 disabledTests = [ 34 # Tests require networking 35 "test_cached_as" 36 "test_invalidation_signal" 37 "test_queryset" 38 "test_queryset_empty" 39 "test_lock" 40 "test_context_manager" 41 "test_decorator" 42 "test_in_transaction" 43 "test_nested" 44 "test_unhashable_args" 45 "test_db_agnostic_by_default" 46 "test_db_agnostic_disabled" 47 ]; 48 49 DJANGO_SETTINGS_MODULE = "tests.settings"; 50 51 meta = with lib; { 52 description = "A slick ORM cache with automatic granular event-driven invalidation for Django"; 53 homepage = "https://github.com/Suor/django-cacheops"; 54 license = licenses.bsd3; 55 maintainers = with maintainers; [ onny ]; 56 }; 57}