Unverified Commit 86cb1662 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python312Packages.django-registration: init at 5.1.0 (#378904)

parents 7408cd8c 93342e3e
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };