From 2e1676940fdc5c8554738c1f7dc79a0a2ca4781f Mon Sep 17 00:00:00 2001 From: Tom Hunze Date: Sun, 22 Mar 2026 12:26:58 +0100 Subject: [PATCH] python3Packages.django-cryptography: drop django-cryptography has seen no upstream activity since February 2024 [1] and is broken with Python 3.14 [2]. [1] https://github.com/georgemarshall/django-cryptography [2] https://hydra.nixos.org/build/324628369/nixlog/1 --- .../django-cryptography/default.nix | 60 ------------------- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 - 3 files changed, 1 insertion(+), 62 deletions(-) delete mode 100644 pkgs/development/python-modules/django-cryptography/default.nix diff --git a/pkgs/development/python-modules/django-cryptography/default.nix b/pkgs/development/python-modules/django-cryptography/default.nix deleted file mode 100644 index 10c3810b2269..000000000000 --- a/pkgs/development/python-modules/django-cryptography/default.nix +++ /dev/null @@ -1,60 +0,0 @@ -{ - buildPythonPackage, - cryptography, - django, - django-appconf, - fetchFromGitHub, - lib, - pytestCheckHook, - pytest-django, - setuptools, -}: - -buildPythonPackage { - pname = "django-cryptography"; - version = "1.1-unstable-2024-02-16"; - pyproject = true; - - src = fetchFromGitHub { - owner = "georgemarshall"; - repo = "django-cryptography"; - rev = "a5cde9beed707a14a2ef2f1f7f1fee172feb8b5e"; - hash = "sha256-Xj/fw8EapsYvVbZPRQ81yeE9QpIQ1TIuk+ASOCGh/Uc="; - }; - - postPatch = '' - substituteInPlace setup.cfg \ - --replace-fail "packages = django_cryptography" "packages = find:" - ''; - - build-system = [ setuptools ]; - - dependencies = [ - cryptography - django - django-appconf - ]; - - pythonImportsCheck = [ "django_cryptography" ]; - - nativeCheckInputs = [ - pytest-django - pytestCheckHook - ]; - - preCheck = '' - export DJANGO_SETTINGS_MODULE=tests.settings - ''; - - disabledTests = [ - # self.assertEqual(len(errors), 1) - AssertionError: 0 != 1 - "test_field_checks" - ]; - - meta = { - homepage = "https://github.com/georgemarshall/django-cryptography"; - description = "Set of primitives for performing cryptography in Django"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ centromere ]; - }; -} diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index d9d1dd335ef6..d96b3e7f66b1 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -149,6 +149,7 @@ mapAliases { django-crispy-bootstrap3 = crispy-bootstrap3; # added 2025-06-11 django-crispy-bootstrap4 = crispy-bootstrap4; # added 2025-06-11 django-crispy-bootstrap5 = crispy-bootstrap5; # added 2025-06-11 + django-cryptography = throw "'django-cryptography' has been removed as it was unmaintained upstream"; # Added 2026-03-22 django-modelsearch = modelsearch; # added 2026-03-02 django_3 = throw "Django 3 has reached it's EOL in 2024-04 and has therefore been removed."; # added 2025-01-25 django_5_1 = throw "Django 5.1 has reached it's EOL in 2025-12 and has therefore been removed."; # added 2025-11-30" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index fcf19791ac15..134cd14bc217 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4154,8 +4154,6 @@ self: super: with self; { django-crossdomainmedia = callPackage ../development/python-modules/django-crossdomainmedia { }; - django-cryptography = callPackage ../development/python-modules/django-cryptography { }; - django-csp = callPackage ../development/python-modules/django-csp { }; django-cte = callPackage ../development/python-modules/django-cte { };