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