From 93342e3e44cb8743e93767907268e03a1794ef0d Mon Sep 17 00:00:00 2001 From: Victor Engmark Date: Sat, 11 Jan 2025 21:19:03 +0100 Subject: [PATCH] python312Packages.django-registration: init at 5.1.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: GaƩtan Lepage <33058747+GaetanLepage@users.noreply.github.com> --- .../django-registration/default.nix | 56 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 58 insertions(+) create mode 100644 pkgs/development/python-modules/django-registration/default.nix diff --git a/pkgs/development/python-modules/django-registration/default.nix b/pkgs/development/python-modules/django-registration/default.nix new file mode 100644 index 000000000000..2e91cda32f98 --- /dev/null +++ b/pkgs/development/python-modules/django-registration/default.nix @@ -0,0 +1,56 @@ +{ + lib, + buildPythonPackage, + confusable-homoglyphs, + coverage, + django, + fetchFromGitHub, + pdm-backend, + pythonAtLeast, + pythonOlder, +}: + +buildPythonPackage rec { + pname = "django-registration"; + version = "5.1.0"; + pyproject = true; + + disabled = pythonOlder "3.9" || pythonAtLeast "3.13"; + + src = fetchFromGitHub { + owner = "ubernostrum"; + repo = "django-registration"; + tag = version; + hash = "sha256-02kAZXxzTdLBvgff+WNUww2k/yGqxIG5gv8gXy9z7KE="; + }; + + build-system = [ pdm-backend ]; + + dependencies = [ + confusable-homoglyphs + ]; + + nativeCheckInputs = [ + coverage + django + ]; + + installCheckPhase = '' + runHook preInstallCheck + + DJANGO_SETTINGS_MODULE=tests.settings python -m coverage run --source django_registration runtests.py + + runHook postInstallCheck + ''; + + pythonImportsCheck = [ "django_registration" ]; + + meta = { + changelog = "https://github.com/ubernostrum/django-registration/blob/${version}/docs/changelog.rst"; + description = "User registration app for Django"; + homepage = "https://django-registration.readthedocs.io/en/${version}/"; + downloadPage = "https://github.com/ubernostrum/django-registration"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.l0b0 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index c5515b993545..656ee604dbae 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3619,6 +3619,8 @@ self: super: with self; { django-q2 = callPackage ../development/python-modules/django-q2 { }; + django-registration = callPackage ../development/python-modules/django-registration { }; + django-scheduler = callPackage ../development/python-modules/django-scheduler { }; django-scim2 = callPackage ../development/python-modules/django-scim2 { };