Merge pull request #292109 from jvanbruegge/authentik-2024.2

authentik,authentik-outposts.ldap: 2023.10.7 -> 2024.2.2

authored by lassulus and committed by GitHub befc64a5 deedbeb6

+56 -10
+1 -1
pkgs/by-name/au/authentik/ldap.nix
··· 4 4 pname = "authentik-ldap-outpost"; 5 5 inherit (authentik) version src; 6 6 7 - vendorHash = "sha256-74rSuZrO5c7mjhHh0iQlJEkOslsFrcDb1aRXXC4RsUM="; 7 + vendorHash = "sha256-UIJBCTq7AJGUDIlZtJaWCovyxlMPzj2BCJQqthybEz4="; 8 8 9 9 CGO_ENABLED = 0; 10 10
+55 -9
pkgs/by-name/au/authentik/package.nix
··· 11 11 , makeWrapper }: 12 12 13 13 let 14 - version = "2023.10.7"; 14 + version = "2024.2.2"; 15 15 16 16 src = fetchFromGitHub { 17 17 owner = "goauthentik"; 18 18 repo = "authentik"; 19 19 rev = "version/${version}"; 20 - hash = "sha256-+1IdXRt28UZ2KTa0zsmjneNUOcutP99UUwqcYyVyqTI="; 20 + hash = "sha256-2B1RgKY5tpDBdzguEyWqzg15w5x/dLS2ffjbnxbpINs="; 21 21 }; 22 22 23 23 meta = with lib; { ··· 32 32 website = buildNpmPackage { 33 33 pname = "authentik-website"; 34 34 inherit version src meta; 35 - npmDepsHash = "sha256-4dgFxEvMnp+35nSQNsEchtN1qoS5X2KzEbLPvMnyR+k="; 35 + npmDepsHash = "sha256-paACBXG7hEQSLekxCvxNns2Tg9rN3DUgz6o3A/lAhA8="; 36 36 37 37 NODE_ENV = "production"; 38 38 NODE_OPTIONS = "--openssl-legacy-provider"; ··· 82 82 ln -s ${src}/website $out/ 83 83 ln -s ${clientapi} $out/web/node_modules/@goauthentik/api 84 84 ''; 85 - npmDepsHash = "sha256-5aCKlArtoEijGqeYiY3zoV0Qo7/Xt5hSXbmy2uYZpok="; 85 + npmDepsHash = "sha256-Xtzs91m+qu7jTwr0tMeS74gjlZs4vufGGlplPVf9yew="; 86 86 87 87 postPatch = '' 88 88 cd web ··· 105 105 python = python3.override { 106 106 self = python; 107 107 packageOverrides = final: prev: { 108 + django-tenants = prev.buildPythonPackage rec { 109 + pname = "django-tenants"; 110 + version = "unstable-2024-01-11"; 111 + src = fetchFromGitHub { 112 + owner = "rissson"; 113 + repo = pname; 114 + rev = "a7f37c53f62f355a00142473ff1e3451bb794eca"; 115 + hash = "sha256-YBT0kcCfETXZe0j7/f1YipNIuRrcppRVh1ecFS3cvNo="; 116 + }; 117 + format = "setuptools"; 118 + doCheck = false; # Tests require postgres 119 + 120 + propagatedBuildInputs = with prev; [ 121 + django 122 + psycopg 123 + gunicorn 124 + ]; 125 + }; 126 + 127 + tenant-schemas-celery = prev.buildPythonPackage rec { 128 + pname = "tenant-schemas-celery"; 129 + version = "2.2.0"; 130 + src = fetchFromGitHub { 131 + owner = "maciej-gol"; 132 + repo = pname; 133 + rev = version; 134 + hash = "sha256-OpIJobjWZE5GQGnHADioeoJo3A6DAKh0HdO10k4rsX4="; 135 + }; 136 + format = "setuptools"; 137 + doCheck = false; 138 + 139 + propagatedBuildInputs = with prev; [ 140 + freezegun 141 + more-itertools 142 + psycopg2 143 + ]; 144 + }; 145 + 108 146 authentik-django = prev.buildPythonPackage { 109 147 pname = "authentik-django"; 110 148 inherit version src meta; 111 149 pyproject = true; 112 150 113 151 postPatch = '' 152 + rm lifecycle/system_migrations/tenant_files.py 114 153 substituteInPlace authentik/root/settings.py \ 115 154 --replace-fail 'Path(__file__).absolute().parent.parent.parent' "\"$out\"" 116 155 substituteInPlace authentik/lib/default.yml \ 117 - --replace-fail '/blueprints' "$out/blueprints" 156 + --replace-fail '/blueprints' "$out/blueprints" \ 157 + --replace-fail './media' '/var/lib/authentik/media' 118 158 substituteInPlace pyproject.toml \ 119 159 --replace-fail 'dumb-init = "*"' "" \ 120 - --replace-fail 'djangorestframework-guardian' 'djangorestframework-guardian2' 160 + --replace-fail 'djangorestframework-guardian' 'djangorestframework-guardian2' \ 161 + --replace-fail 'version = "4.9.4"' 'version = "*"' \ 162 + --replace-fail 'version = "<2"' 'version = "*"' 121 163 substituteInPlace authentik/stages/email/utils.py \ 122 164 --replace-fail 'web/' '${webui}/' 123 165 ''; 124 166 125 167 nativeBuildInputs = [ prev.poetry-core ]; 126 168 127 - propagatedBuildInputs = with prev; [ 169 + propagatedBuildInputs = with final; [ 128 170 argon2-cffi 129 171 celery 130 172 channels ··· 140 182 django-model-utils 141 183 django-prometheus 142 184 django-redis 185 + django-storages 186 + django-tenants 143 187 djangorestframework 144 188 djangorestframework-guardian2 145 189 docker ··· 153 197 kubernetes 154 198 ldap3 155 199 lxml 200 + jsonpatch 156 201 opencontainers 157 202 packaging 158 203 paramiko ··· 164 209 pyyaml 165 210 requests-oauthlib 166 211 sentry-sdk 212 + service-identity 167 213 structlog 168 214 swagger-spec-validator 215 + tenant-schemas-celery 169 216 twilio 170 217 twisted 171 218 ua-parser ··· 178 225 wsproto 179 226 xmlsec 180 227 zxcvbn 181 - jsonpatch 182 228 ] ++ [ 183 229 codespell 184 230 ]; ··· 212 258 213 259 CGO_ENABLED = 0; 214 260 215 - vendorHash = "sha256-74rSuZrO5c7mjhHh0iQlJEkOslsFrcDb1aRXXC4RsUM="; 261 + vendorHash = "sha256-UIJBCTq7AJGUDIlZtJaWCovyxlMPzj2BCJQqthybEz4="; 216 262 217 263 postInstall = '' 218 264 mv $out/bin/server $out/bin/authentik