1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 django,
6 funcy,
7 redis,
8 redisTestHook,
9 six,
10 pytestCheckHook,
11 pytest-django,
12 mock,
13 dill,
14 jinja2,
15 before-after,
16 pythonOlder,
17 net-tools,
18 pkgs,
19 setuptools,
20}:
21
22buildPythonPackage rec {
23 pname = "django-cacheops";
24 version = "7.2";
25 pyproject = true;
26
27 disabled = pythonOlder "3.7";
28
29 src = fetchPypi {
30 pname = "django_cacheops";
31 inherit version;
32 hash = "sha256-y8EcwDISlaNkTie8smlA8Iy5wucdPuUGy8/wvdoanzM=";
33 };
34
35 pythonRelaxDeps = [ "funcy" ];
36
37 build-system = [ setuptools ];
38
39 dependencies = [
40 django
41 funcy
42 redis
43 six
44 ];
45
46 __darwinAllowLocalNetworking = true;
47
48 nativeCheckInputs = [
49 pytestCheckHook
50 pytest-django
51 mock
52 dill
53 jinja2
54 before-after
55 net-tools
56 pkgs.valkey
57 redisTestHook
58 ];
59
60 DJANGO_SETTINGS_MODULE = "tests.settings";
61
62 meta = with lib; {
63 description = "Slick ORM cache with automatic granular event-driven invalidation for Django";
64 homepage = "https://github.com/Suor/django-cacheops";
65 changelog = "https://github.com/Suor/django-cacheops/blob/${version}/CHANGELOG";
66 license = licenses.bsd3;
67 maintainers = with maintainers; [ onny ];
68 };
69}