From 92c0f467ba2b67028c4dc3201c1d4aaebcf99a7f Mon Sep 17 00:00:00 2001 From: Lancelot SIX Date: Thu, 28 Sep 2017 14:00:49 +0200 Subject: [PATCH] pythonPackages.django_redis: 4.2.0 -> 4.5.0 --- .../python-modules/django_redis/default.nix | 28 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 26 +---------------- 2 files changed, 29 insertions(+), 25 deletions(-) create mode 100644 pkgs/development/python-modules/django_redis/default.nix diff --git a/pkgs/development/python-modules/django_redis/default.nix b/pkgs/development/python-modules/django_redis/default.nix new file mode 100644 index 000000000000..42f2cde81130 --- /dev/null +++ b/pkgs/development/python-modules/django_redis/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchPypi, buildPythonPackage, + mock, django, redis, msgpack }: +buildPythonPackage rec { + pname = "django-redis"; + version = "4.5.0"; + name = "${pname}-${version}"; + + src = fetchPypi { + inherit pname version; + sha256 = "170dbk1wmdg0mxp5m3376zz54dyxmhmhnswrccf0jnny1wqcgpsp"; + }; + + doCheck = false; + + buildInputs = [ mock ]; + + propagatedBuildInputs = [ + django + redis + msgpack + ]; + + meta = with stdenv.lib; { + description = "Full featured redis cache backend for Django"; + homepage = https://github.com/niwibe/django-redis; + license = licenses.bsd3; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 82ff3b64cd64..95749833e853 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8398,31 +8398,7 @@ in { django-raster = callPackage ../development/python-modules/django-raster { }; - django_redis = buildPythonPackage rec { - name = "django-redis-${version}"; - version = "4.2.0"; - - src = pkgs.fetchurl { - url = "mirror://pypi/d/django-redis/${name}.tar.gz"; - sha256 = "9ad6b299458f7e6bfaefa8905f52560017369d82fb8fb0ed4b41adc048dbf11c"; - }; - - doCheck = false; - - buildInputs = [ self.mock ]; - - propagatedBuildInputs = with self; [ - django - redis - msgpack - ]; - - meta = { - description = "Full featured redis cache backend for Django"; - homepage = https://github.com/niwibe/django-redis; - license = licenses.bsd3; - }; - }; + django_redis = callPackage ../development/python-modules/django_redis { }; django_reversion = buildPythonPackage rec { name = "django-reversion-${version}";