python3Packages.django-redis: rename from django_redis
Also partially enable tests.
This commit is contained in:
parent
1091005449
commit
e75571d888
50
pkgs/development/python-modules/django-redis/default.nix
Normal file
50
pkgs/development/python-modules/django-redis/default.nix
Normal file
@ -0,0 +1,50 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, buildPythonPackage
|
||||
, django
|
||||
, redis
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "django-redis";
|
||||
version = "5.0.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jazzband";
|
||||
repo = "django-redis";
|
||||
rev = version;
|
||||
sha256 = "1np10hfyg4aamlz7vav9fy80gynb1lhl2drqkbckr3gg1gbz6crj";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i '/-cov/d' setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
django
|
||||
redis
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"django_redis"
|
||||
];
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/test_backend.py" # django.core.exceptions.ImproperlyConfigured: Requested setting DJANGO_REDIS_SCAN_ITERSIZE, but settings are not configured.
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Full featured redis cache backend for Django";
|
||||
homepage = "https://github.com/jazzband/django-redis";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ hexa ];
|
||||
};
|
||||
}
|
@ -1,35 +0,0 @@
|
||||
{ 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; [ ];
|
||||
};
|
||||
}
|
@ -44,6 +44,7 @@ mapAliases ({
|
||||
diff_cover = diff-cover; # added 2021-07-02
|
||||
discogs_client = discogs-client; # added 2021-07-02
|
||||
djangorestframework-jwt = drf-jwt; # added 2021-07-20
|
||||
django_redis = django-redis; # added 2021-10-11
|
||||
dns = dnspython; # added 2017-12-10
|
||||
dogpile_cache = dogpile-cache; # added 2021-10-28
|
||||
faulthandler = throw "faulthandler is built into ${python.executable}"; # added 2021-07-12
|
||||
|
@ -2179,7 +2179,7 @@ in {
|
||||
|
||||
django-raster = callPackage ../development/python-modules/django-raster { };
|
||||
|
||||
django_redis = callPackage ../development/python-modules/django_redis { };
|
||||
django-redis = callPackage ../development/python-modules/django-redis { };
|
||||
|
||||
django-rest-auth = callPackage ../development/python-modules/django-rest-auth { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user