python3Packages.django_3: drop (#376781)

authored by Martin Weinelt and committed by GitHub 1ce2122b 189f817a

+3 -385
-120
pkgs/by-name/ar/archivebox/package.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - python3, 5 - fetchFromGitHub, 6 - fetchPypi, 7 - curl, 8 - wget, 9 - git, 10 - ripgrep, 11 - single-file-cli, 12 - postlight-parser, 13 - readability-extractor, 14 - chromium, 15 - }: 16 - 17 - let 18 - python = python3.override { 19 - self = python; 20 - packageOverrides = self: super: { 21 - django = super.django_3.overridePythonAttrs (old: rec { 22 - version = "3.1.14"; 23 - src = old.src.override { 24 - inherit version; 25 - hash = "sha256-cqSloTaiFMOc8BbM3Wtp4qoIx0ecZtk/OpteS7nYo0c="; 26 - }; 27 - meta = old.meta // { 28 - knownVulnerabilities = [ 29 - "CVE-2021-45115" 30 - "CVE-2021-45116" 31 - "CVE-2021-45452" 32 - "CVE-2022-23833" 33 - "CVE-2022-22818" 34 - "CVE-2022-28347" 35 - "CVE-2022-28346" 36 - ]; 37 - }; 38 - dependencies = 39 - (old.dependencies or [ ]) 40 - ++ (lib.optionals (python.pythonAtLeast "3.12") [ python.pkgs.distutils ]); 41 - }); 42 - django-extensions = super.django-extensions.overridePythonAttrs (old: rec { 43 - version = "3.1.5"; 44 - src = fetchFromGitHub { 45 - inherit version; 46 - owner = "django-extensions"; 47 - repo = "django-extensions"; 48 - rev = "e43f383dae3a35237e42f6acfe1207a8e7e7bdf5"; 49 - hash = "sha256-NAMa78KhAuoJfp0Cb0Codz84sRfRQ1JhSLNYRI4GBPM="; 50 - }; 51 - patches = [ ]; 52 - postPatch = null; 53 - 54 - # possibly a real issue, but that version is not supported anymore 55 - doCheck = false; 56 - }); 57 - }; 58 - }; 59 - in 60 - 61 - python.pkgs.buildPythonApplication rec { 62 - pname = "archivebox"; 63 - version = "0.7.2"; 64 - pyproject = true; 65 - 66 - src = fetchPypi { 67 - inherit pname version; 68 - hash = "sha256-hdBUEX2tOWN2b11w6aG3x7MP7KQTj4Rwc2w8XvABGf4="; 69 - }; 70 - 71 - build-system = with python.pkgs; [ 72 - pdm-backend 73 - ]; 74 - 75 - dependencies = with python.pkgs; [ 76 - croniter 77 - dateparser 78 - django 79 - django-extensions 80 - ipython 81 - mypy-extensions 82 - python-crontab 83 - requests 84 - w3lib 85 - yt-dlp 86 - ]; 87 - 88 - makeWrapperArgs = [ 89 - "--set USE_NODE True" # used through dependencies, not needed explicitly 90 - "--set READABILITY_BINARY ${lib.meta.getExe readability-extractor}" 91 - "--set MERCURY_BINARY ${lib.meta.getExe postlight-parser}" 92 - "--set CURL_BINARY ${lib.meta.getExe curl}" 93 - "--set RIPGREP_BINARY ${lib.meta.getExe ripgrep}" 94 - "--set WGET_BINARY ${lib.meta.getExe wget}" 95 - "--set GIT_BINARY ${lib.meta.getExe git}" 96 - "--set YOUTUBEDL_BINARY ${lib.meta.getExe python.pkgs.yt-dlp}" 97 - "--set SINGLEFILE_BINARY ${lib.meta.getExe single-file-cli}" 98 - ] 99 - ++ ( 100 - if (lib.meta.availableOn stdenv.hostPlatform chromium) then 101 - [ 102 - "--set CHROME_BINARY ${chromium}/bin/chromium-browser" 103 - ] 104 - else 105 - [ 106 - "--set-default USE_CHROME False" 107 - ] 108 - ); 109 - 110 - meta = with lib; { 111 - description = "Open source self-hosted web archiving"; 112 - homepage = "https://archivebox.io"; 113 - license = licenses.mit; 114 - maintainers = with maintainers; [ 115 - siraben 116 - viraptor 117 - ]; 118 - platforms = platforms.unix; 119 - }; 120 - }
-163
pkgs/by-name/ba/baserow/package.nix
··· 1 - { 2 - lib, 3 - fetchFromGitLab, 4 - makeWrapper, 5 - python3, 6 - antlr4_9, 7 - }: 8 - 9 - let 10 - 11 - python = python3.override { 12 - self = python; 13 - packageOverrides = self: super: { 14 - antlr4-python3-runtime = super.antlr4-python3-runtime.override { 15 - antlr4 = antlr4_9; 16 - }; 17 - 18 - baserow_premium = self.buildPythonPackage rec { 19 - pname = "baserow_premium"; 20 - version = "1.12.1"; 21 - format = "setuptools"; 22 - 23 - src = fetchFromGitLab { 24 - owner = "bramw"; 25 - repo = "baserow_premium"; 26 - rev = "refs/tags/${version}"; 27 - hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q="; 28 - }; 29 - 30 - sourceRoot = "${src.name}/premium/backend"; 31 - 32 - doCheck = false; 33 - }; 34 - 35 - django = super.django_3; 36 - }; 37 - }; 38 - in 39 - 40 - with python.pkgs; 41 - buildPythonApplication rec { 42 - pname = "baserow"; 43 - version = "1.12.1"; 44 - format = "setuptools"; 45 - 46 - src = fetchFromGitLab { 47 - owner = "bramw"; 48 - repo = "baserow"; 49 - rev = "refs/tags/${version}"; 50 - hash = "sha256-zT2afl3QNE2dO3JXjsZXqSmm1lv3EorG3mYZLQQMQ2Q="; 51 - }; 52 - 53 - sourceRoot = "${src.name}/backend"; 54 - 55 - postPatch = '' 56 - # use input files to not depend on outdated peer dependencies 57 - mv requirements/base.{in,txt} 58 - mv requirements/dev.{in,txt} 59 - 60 - # remove dependency constraints 61 - sed -i requirements/base.txt \ 62 - -e 's/[~<>=].*//' -i requirements/base.txt \ 63 - -e 's/zope-interface/zope.interface/' \ 64 - -e 's/\[standard\]//' 65 - ''; 66 - 67 - nativeBuildInputs = [ 68 - makeWrapper 69 - ]; 70 - 71 - propagatedBuildInputs = [ 72 - autobahn 73 - advocate 74 - antlr4-python3-runtime 75 - boto3 76 - cached-property 77 - celery-redbeat 78 - channels 79 - channels-redis 80 - daphne 81 - dj-database-url 82 - django-celery-beat 83 - django-celery-email 84 - django-cors-headers 85 - django-health-check 86 - django-redis 87 - django-storages 88 - drf-jwt 89 - drf-spectacular 90 - faker 91 - gunicorn 92 - importlib-resources 93 - itsdangerous 94 - pillow 95 - pyparsing 96 - psutil 97 - psycopg2 98 - redis 99 - regex 100 - requests 101 - service-identity 102 - setuptools 103 - tqdm 104 - twisted 105 - unicodecsv 106 - uvicorn 107 - watchgod 108 - zipp 109 - ] 110 - ++ uvicorn.optional-dependencies.standard; 111 - 112 - postInstall = '' 113 - wrapProgram $out/bin/baserow \ 114 - --prefix PYTHONPATH : "$PYTHONPATH" \ 115 - --prefix DJANGO_SETTINGS_MODULE : "baserow.config.settings.base" 116 - ''; 117 - 118 - nativeCheckInputs = [ 119 - baserow_premium 120 - boto3 121 - freezegun 122 - httpretty 123 - openapi-spec-validator 124 - pyinstrument 125 - pytestCheckHook 126 - pytest-django 127 - pytest-unordered 128 - responses 129 - zope-interface 130 - ]; 131 - 132 - fixupPhase = '' 133 - cp -r src/baserow/contrib/database/{api,action,trash,formula,file_import} \ 134 - $out/${python.sitePackages}/baserow/contrib/database/ 135 - cp -r src/baserow/core/management/backup $out/${python.sitePackages}/baserow/core/management/ 136 - ''; 137 - 138 - disabledTests = [ 139 - # Disable linting checks 140 - "flake8_plugins" 141 - ]; 142 - 143 - disabledTestPaths = [ 144 - # Disable premium tests 145 - "../premium/backend/src/baserow_premium" 146 - "../premium/backend/tests/baserow_premium" 147 - # Disable database related tests 148 - "tests/baserow/contrib/database" 149 - "tests/baserow/api" 150 - "tests/baserow/core" 151 - "tests/baserow/ws" 152 - ]; 153 - 154 - DJANGO_SETTINGS_MODULE = "baserow.config.settings.test"; 155 - 156 - meta = with lib; { 157 - description = "No-code database and Airtable alternative"; 158 - homepage = "https://baserow.io"; 159 - license = licenses.mit; 160 - maintainers = with maintainers; [ onny ]; 161 - mainProgram = "baserow"; 162 - }; 163 - }
-63
pkgs/development/python-modules/django/3.nix
··· 1 - { 2 - lib, 3 - stdenv, 4 - buildPythonPackage, 5 - fetchPypi, 6 - replaceVars, 7 - geos_3_9, 8 - gdal, 9 - asgiref, 10 - pytz, 11 - sqlparse, 12 - tzdata, 13 - pythonOlder, 14 - withGdal ? false, 15 - }: 16 - 17 - buildPythonPackage rec { 18 - pname = "django"; 19 - version = "3.2.25"; 20 - format = "setuptools"; 21 - 22 - disabled = pythonOlder "3.7"; 23 - 24 - src = fetchPypi { 25 - pname = "Django"; 26 - inherit version; 27 - hash = "sha256-fKOKeGVK7nI3hZTWPlFjbAS44oV09VBd/2MIlbVHJ3c="; 28 - }; 29 - 30 - patches = [ 31 - (replaceVars ./django_3_set_zoneinfo_dir.patch { 32 - zoneinfo = tzdata + "/share/zoneinfo"; 33 - }) 34 - ] 35 - ++ lib.optional withGdal ( 36 - replaceVars ./django_3_set_geos_gdal_lib.patch { 37 - inherit geos_3_9; 38 - inherit gdal; 39 - extension = stdenv.hostPlatform.extensions.sharedLibrary; 40 - } 41 - ); 42 - 43 - propagatedBuildInputs = [ 44 - asgiref 45 - pytz 46 - sqlparse 47 - ]; 48 - 49 - # too complicated to setup 50 - doCheck = false; 51 - 52 - pythonImportsCheck = [ "django" ]; 53 - 54 - meta = with lib; { 55 - description = "High-level Python Web framework"; 56 - homepage = "https://www.djangoproject.com/"; 57 - license = licenses.bsd3; 58 - maintainers = with maintainers; [ georgewhewell ]; 59 - knownVulnerabilities = [ 60 - "Support for Django 3.2 ended on 2024-04-01, see https://www.djangoproject.com/download/#supported-versions." 61 - ]; 62 - }; 63 - }
-24
pkgs/development/python-modules/django/django_3_set_geos_gdal_lib.patch
··· 1 - diff -Nur a/django/contrib/gis/gdal/libgdal.py b/django/contrib/gis/gdal/libgdal.py 2 - --- a/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:34:05.330568948 +0100 3 - +++ b/django/contrib/gis/gdal/libgdal.py 2020-07-09 22:35:08.679095615 +0100 4 - @@ -14,7 +14,7 @@ 5 - from django.conf import settings 6 - lib_path = settings.GDAL_LIBRARY_PATH 7 - except (AttributeError, ImportError, ImproperlyConfigured, OSError): 8 - - lib_path = None 9 - + lib_path = "@gdal@/lib/libgdal@extension@" 10 - 11 - if lib_path: 12 - lib_names = None 13 - diff -Nur a/django/contrib/gis/geos/libgeos.py b/django/contrib/gis/geos/libgeos.py 14 - --- a/django/contrib/gis/geos/libgeos.py 2020-07-09 22:34:05.331568941 +0100 15 - +++ b/django/contrib/gis/geos/libgeos.py 2020-07-09 22:36:24.863526276 +0100 16 - @@ -24,7 +24,7 @@ 17 - from django.conf import settings 18 - lib_path = settings.GEOS_LIBRARY_PATH 19 - except (AttributeError, ImportError, ImproperlyConfigured, OSError): 20 - - lib_path = None 21 - + lib_path = "@geos_3_9@/lib/libgeos_c@extension@" 22 - 23 - # Setting the appropriate names for the GEOS-C library. 24 - if lib_path:
-13
pkgs/development/python-modules/django/django_3_set_zoneinfo_dir.patch
··· 1 - diff --git a/django/conf/__init__.py b/django/conf/__init__.py 2 - index 28302440c7..278cfa5e62 100644 3 - --- a/django/conf/__init__.py 4 - +++ b/django/conf/__init__.py 5 - @@ -200,7 +200,7 @@ class Settings: 6 - if hasattr(time, 'tzset') and self.TIME_ZONE: 7 - # When we can, attempt to validate the timezone. If we can't find 8 - # this file, no check happens and it's harmless. 9 - - zoneinfo_root = Path('/usr/share/zoneinfo') 10 - + zoneinfo_root = Path('@zoneinfo@') 11 - zone_info_file = zoneinfo_root.joinpath(*self.TIME_ZONE.split('/')) 12 - if zoneinfo_root.exists() and not zone_info_file.exists(): 13 - raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
+2
pkgs/top-level/aliases.nix
··· 303 303 arb = throw "'arb' has been removed as it has been merged into 'flint3'"; # Added 2025-03-28 304 304 arcanist = throw "arcanist was removed as phabricator is not supported and does not accept fixes"; # Added 2024-06-07 305 305 archipelago-minecraft = throw "archipelago-minecraft has been removed, as upstream no longer ships minecraft as a default APWorld."; # Added 2025-07-15 306 + archivebox = throw "archivebox has been removed, since the packaged version was stuck on django 3."; # Added 2025-08-01 306 307 argo = argo-workflows; # Added 2025-02-01 307 308 aria = aria2; # Added 2024-03-26 308 309 artim-dark = aritim-dark; # Added 2025-07-27 ··· 338 339 badwolf = throw "'badwolf' has been removed due to being unmaintained"; # Added 2025-04-15 339 340 baget = throw "'baget' has been removed due to being unmaintained"; 340 341 base16-builder = throw "'base16-builder' has been removed due to being unmaintained"; # Added 2025-06-03 342 + baserow = throw "baserow has been removed, due to lack of maintenance"; # Added 2025-08-02 341 343 bashInteractive_5 = throw "'bashInteractive_5' has been renamed to/replaced by 'bashInteractive'"; # Converted to throw 2024-10-17 342 344 bash_5 = throw "'bash_5' has been renamed to/replaced by 'bash'"; # Converted to throw 2024-10-17 343 345 bareboxTools = throw "bareboxTools has been removed due to lack of interest in maintaining it in nixpkgs"; # Added 2025-04-19
+1
pkgs/top-level/python-aliases.nix
··· 192 192 django-allauth-2fa = throw "django-allauth-2fa was removed because it was unused and django-allauth now contains 2fa logic itself."; # added 2025-02-15 193 193 django-sampledatahelper = throw "django-sampledatahelper was removed because it is no longer compatible to latest Django version"; # added 2022-07-18 194 194 django_2 = throw "Django 2 has reached it's projected EOL in 2022/04 and has therefore been removed."; # added 2022-03-05 195 + django_3 = throw "Django 3 has reached it#s EOL in 2024-04 and has therefore been removed."; # added 2025-01-25 195 196 django_appconf = django-appconf; # added 2022-03-03 196 197 django_classytags = django-classy-tags; # added 2023-07-25 197 198 django_colorful = django-colorful; # added 2023-07-25
-2
pkgs/top-level/python-packages.nix
··· 4082 4082 django-widget-tweaks = callPackage ../development/python-modules/django-widget-tweaks { }; 4083 4083 4084 4084 # LTS in extended support phase 4085 - django_3 = callPackage ../development/python-modules/django/3.nix { }; 4086 - 4087 4085 django_4 = callPackage ../development/python-modules/django/4.nix { }; 4088 4086 4089 4087 django_5 = self.django_5_2;