forked from DGNum/infrastructure
chore(dgsi): add django REST framework & drf spectacular
Co-Authored-By: Tom Hubrecht <tom.hubrecht@dgnum.eu>
This commit is contained in:
parent
8a6b13644b
commit
f8c058d3e4
1 changed files with 17 additions and 4 deletions
|
@ -18,7 +18,6 @@ let
|
||||||
packageOverrides = (import "${sources.nix-pkgs}/overlay.nix").mkOverlay {
|
packageOverrides = (import "${sources.nix-pkgs}/overlay.nix").mkOverlay {
|
||||||
folder = "python-modules";
|
folder = "python-modules";
|
||||||
plist = [
|
plist = [
|
||||||
"django-allauth"
|
|
||||||
"django-allauth-cas"
|
"django-allauth-cas"
|
||||||
"django-browser-reload"
|
"django-browser-reload"
|
||||||
"django-bulma-forms"
|
"django-bulma-forms"
|
||||||
|
@ -37,14 +36,16 @@ let
|
||||||
ps:
|
ps:
|
||||||
[
|
[
|
||||||
ps.django
|
ps.django
|
||||||
ps.gunicorn
|
ps.django-allauth
|
||||||
ps.psycopg
|
|
||||||
ps.django-compressor
|
ps.django-compressor
|
||||||
ps.django-htmx
|
ps.django-htmx
|
||||||
ps.django-import-export
|
ps.django-import-export
|
||||||
|
ps.djangorestframework
|
||||||
|
ps.drf-spectacular
|
||||||
|
ps.gunicorn
|
||||||
|
ps.psycopg
|
||||||
|
|
||||||
# Local packages
|
# Local packages
|
||||||
ps.django-allauth
|
|
||||||
ps.django-allauth-cas
|
ps.django-allauth-cas
|
||||||
ps.django-browser-reload
|
ps.django-browser-reload
|
||||||
ps.django-bulma-forms
|
ps.django-bulma-forms
|
||||||
|
@ -55,7 +56,19 @@ let
|
||||||
ps.pykanidm
|
ps.pykanidm
|
||||||
ps.python-cas
|
ps.python-cas
|
||||||
]
|
]
|
||||||
|
++ (
|
||||||
|
# On unstable, it is ps.django-allauth.optional-dependencies.socialaccount
|
||||||
|
# but it does not exist on 24.11
|
||||||
|
# FIXME: Use the correct optional-dependencies when available
|
||||||
|
[
|
||||||
|
ps.requests
|
||||||
|
ps.requests-oauthlib
|
||||||
|
ps.pyjwt
|
||||||
|
]
|
||||||
|
++ ps.pyjwt.optional-dependencies.crypto
|
||||||
|
)
|
||||||
++ ps.django-allauth.optional-dependencies.saml
|
++ ps.django-allauth.optional-dependencies.saml
|
||||||
|
++ ps.drf-spectacular.optional-dependencies.sidecar
|
||||||
);
|
);
|
||||||
|
|
||||||
staticDrv = pkgs.stdenv.mkDerivation {
|
staticDrv = pkgs.stdenv.mkDerivation {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue