python312Packages.django-registration: init at 5.1.0

Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com>
This commit is contained in:
Victor Engmark
2025-02-02 21:36:29 +01:00
co-authored by Gaétan Lepage
parent 3d6ac6a6e7
commit 93342e3e44
2 changed files with 58 additions and 0 deletions
@@ -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 ];
};
}
+2
View File
@@ -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 { };