about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/django_redis/default.nix
blob: 61101cc8a9290379f31205ee60574c113e3930a2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{ lib
, fetchPypi
, buildPythonPackage
, mock
, django
, redis
, msgpack
}:
buildPythonPackage rec {
  pname = "django-redis";
  version = "5.0.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "048f665bbe27f8ff2edebae6aa9c534ab137f1e8fa7234147ef470df3f3aa9b8";
  };

  propagatedBuildInputs = [
    django
    redis
    msgpack
  ];

  # django.core.exceptions.ImproperlyConfigured: Requested setting DJANGO_REDIS_SCAN_ITERSIZE, but settings are not configured. You must either define the environment variable DJANGO_SETTINGS_MODULE or call settings.configure() before accessing settings.
  doCheck = false;

  pythonImportsCheck = [ "django_redis" ];

  meta = with lib; {
    description = "Full featured redis cache backend for Django";
    homepage = "https://github.com/niwibe/django-redis";
    license = licenses.bsd3;
    maintainers = with maintainers; [ ];
  };
}