Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchPypi 4, django 5, funcy 6, redis 7, pytest-django 8, pytestCheckHook 9, pythonOlder 10, six 11}: 12 13buildPythonPackage rec { 14 pname = "django-cacheops"; 15 version = "6.2"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchPypi { 21 inherit pname version; 22 hash = "sha256-zHP9ChwUeZJT/yCopFeRo8jSgCIXswHnDPoIroGeQ48="; 23 }; 24 25 propagatedBuildInputs = [ 26 django 27 funcy 28 redis 29 six 30 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 pytest-django 35 ]; 36 37 disabledTests = [ 38 # Tests require networking 39 "test_cached_as" 40 "test_invalidation_signal" 41 "test_queryset" 42 "test_queryset_empty" 43 "test_lock" 44 "test_context_manager" 45 "test_decorator" 46 "test_in_transaction" 47 "test_nested" 48 "test_unhashable_args" 49 "test_db_agnostic_by_default" 50 "test_db_agnostic_disabled" 51 ]; 52 53 DJANGO_SETTINGS_MODULE = "tests.settings"; 54 55 meta = with lib; { 56 description = "A slick ORM cache with automatic granular event-driven invalidation for Django"; 57 homepage = "https://github.com/Suor/django-cacheops"; 58 changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG"; 59 license = licenses.bsd3; 60 maintainers = with maintainers; [ onny ]; 61 }; 62}