Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
2.6 kB · 133 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134{ lib, buildPythonPackage, fetchFromGitea, fetchpatch, pythonOlder, python,
# build-system setuptools, setuptools-scm,
# build-time dependencies gettext,
# dependencies asgiref, django,
# optional-dependencies fido2, oauthlib, python3-openid, python3-saml, requests, requests-oauthlib, pyjwt, qrcode,
# tests django-ninja, djangorestframework, pillow, psycopg2, pytest-asyncio, pytest-django, pytestCheckHook, pyyaml,
# passthru tests dj-rest-auth,}:
buildPythonPackage rec { pname = "django-allauth"; version = "65.10.0"; pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitea { domain = "codeberg.org"; owner = "allauth"; repo = "django-allauth"; tag = version; hash = "sha256-pwWrdWk3bARM4dKbEnUWXuyjw/rTcOjk3YXowDa+Hm8="; };
patches = [ (fetchpatch { name = "dj-rest-auth-compat.patch"; url = "https://github.com/pennersr/django-allauth/commit/d50a9b09bada6753b52e52571d0830d837dc08ee.patch"; hash = "sha256-cFj9HEAlAITbRcR23ptzUYamoLmdtFEUVkDtv4+BBY0="; }) ];
nativeBuildInputs = [ gettext ];
build-system = [ setuptools setuptools-scm ];
dependencies = [ asgiref django ];
preBuild = '' ${python.pythonOnBuildForHost.interpreter} -m django compilemessages '';
optional-dependencies = { idp-oidc = [ oauthlib pyjwt ] ++ pyjwt.optional-dependencies.crypto; mfa = [ fido2 qrcode ]; openid = [ python3-openid ]; saml = [ python3-saml ]; socialaccount = [ requests requests-oauthlib pyjwt ] ++ pyjwt.optional-dependencies.crypto; steam = [ python3-openid ]; };
pythonImportsCheck = [ "allauth" ];
nativeCheckInputs = [ django-ninja djangorestframework pillow psycopg2 pytest-asyncio pytest-django pytestCheckHook pyyaml ] ++ lib.flatten (builtins.attrValues optional-dependencies);
disabledTests = [ # Tests require network access "test_login" ];
passthru.tests = { inherit dj-rest-auth; };
meta = { description = "Integrated set of Django applications addressing authentication, registration, account management as well as 3rd party (social) account authentication"; changelog = "https://codeberg.org/allauth/django-allauth/src/tag/${version}/ChangeLog.rst"; downloadPage = "https://codeberg.org/allauth/django-allauth"; homepage = "https://allauth.org"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ derdennisop ]; };}