3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.django_2: drop

The package goes EOL in 2022/04 and is therefore being removed.

Closes: #157905
This commit is contained in:
Martin Weinelt 2022-03-06 00:55:54 +01:00
parent 518c1876fe
commit dcfccc5622
4 changed files with 1 additions and 64 deletions

View file

@ -1,24 +0,0 @@
diff --git a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py
--- a/django/contrib/gis/gdal/libgdal.py
+++ b/django/contrib/gis/gdal/libgdal.py
@@ -17,7 +17,7 @@ try:
lib_path = settings.GDAL_LIBRARY_PATH
except (AttributeError, EnvironmentError,
ImportError, ImproperlyConfigured):
- lib_path = None
+ lib_path = "@gdal@/lib/libgdal@extension@"
if lib_path:
lib_names = None
diff --git a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py
--- a/django/contrib/gis/geos/libgeos.py
+++ b/django/contrib/gis/geos/libgeos.py
@@ -26,7 +26,7 @@ try:
lib_path = settings.GEOS_LIBRARY_PATH
except (AttributeError, EnvironmentError,
ImportError, ImproperlyConfigured):
- lib_path = None
+ lib_path = "@geos@/lib/libgeos_c@extension@"
# Setting the appropriate names for the GEOS-C library.
if lib_path:

View file

@ -1,39 +0,0 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, substituteAll,
isPy3k,
geos, gdal, pytz, sqlparse,
withGdal ? false
}:
buildPythonPackage rec {
pname = "django";
version = "2.2.27";
disabled = !isPy3k;
src = fetchPypi {
pname = "Django";
inherit version;
sha256 = "sha256-HuNwRrC/K2HoOzoB0GcyNRbsO28rF81JsTJt1LqdyRM=";
};
patches = lib.optional withGdal
(substituteAll {
src = ./1.10-gis-libs.template.patch;
geos = geos;
gdal = gdal;
extension = stdenv.hostPlatform.extensions.sharedLibrary;
})
;
propagatedBuildInputs = [ pytz sqlparse ];
# too complicated to setup
doCheck = false;
meta = with lib; {
description = "A high-level Python Web framework";
homepage = "https://www.djangoproject.com/";
license = licenses.bsd3;
maintainers = with maintainers; [ georgewhewell ];
};
}

View file

@ -50,6 +50,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_2 = throw "Django 2 has reached it's projected EOL in 2022/04 and has therefore been removed."; # added 2022-03-05
django_appconf = django-appconf; # added 2022-03-03
django_environ = django-environ; # added 2021-12-25
django_extensions = django-extensions; # added 2022-01-09

View file

@ -2209,7 +2209,6 @@ in {
django = self.django_3;
# Current LTS
django_2 = callPackage ../development/python-modules/django/2.nix { };
django_3 = callPackage ../development/python-modules/django/3.nix { };
# Current latest