1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pdm-backend, 6 confusable-homoglyphs, 7 coverage, 8 django, 9}: 10 11buildPythonPackage rec { 12 pname = "django-registration"; 13 version = "5.2.1"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "ubernostrum"; 18 repo = "django-registration"; 19 tag = version; 20 hash = "sha256-k7r4g+iCdAwAUNQdbtxzS5kqgAavEBAJERSWgXvbXqg="; 21 }; 22 23 build-system = [ pdm-backend ]; 24 25 dependencies = [ 26 confusable-homoglyphs 27 ]; 28 29 nativeCheckInputs = [ 30 coverage 31 django 32 ]; 33 34 installCheckPhase = '' 35 runHook preInstallCheck 36 37 DJANGO_SETTINGS_MODULE=tests.settings python -m coverage run --source django_registration runtests.py 38 39 runHook postInstallCheck 40 ''; 41 42 pythonImportsCheck = [ "django_registration" ]; 43 44 meta = { 45 changelog = "https://github.com/ubernostrum/django-registration/blob/${version}/docs/changelog.rst"; 46 description = "User registration app for Django"; 47 homepage = "https://django-registration.readthedocs.io/en/${version}/"; 48 downloadPage = "https://github.com/ubernostrum/django-registration"; 49 license = lib.licenses.bsd3; 50 maintainers = [ lib.maintainers.l0b0 ]; 51 }; 52}