diff --git a/default.nix b/default.nix index 160bc4d..78c35f9 100644 --- a/default.nix +++ b/default.nix @@ -48,6 +48,7 @@ in ] ++ (builtins.map (p: ps.callPackage ./pkgs/${p} { }) [ "django-browser-reload" + "django-bulma-forms" "django-sass-processor" "django-sass-processor-dart-sass" "pykanidm" diff --git a/pkgs/django-bulma-forms/default.nix b/pkgs/django-bulma-forms/default.nix new file mode 100644 index 0000000..0497de8 --- /dev/null +++ b/pkgs/django-bulma-forms/default.nix @@ -0,0 +1,36 @@ +{ + lib, + buildPythonPackage, + fetchgit, + setuptools, + setuptools-scm, + wheel, + django, +}: + +buildPythonPackage rec { + pname = "django-bulma-forms"; + version = "0.1.4"; + pyproject = true; + + src = fetchgit { + url = "https://git.hubrecht.ovh/hubrecht/django-bulma-forms"; + rev = "v${version}"; + hash = "sha256-4KTMXx3YxDxB4/YH14pJnNYtpOGXeDmD+gcbrUHwD/w="; + }; + + nativeBuildInputs = [ + setuptools + setuptools-scm + wheel + ]; + + propagatedBuildInputs = [ django ]; + + meta = with lib; { + description = ""; + homepage = "https://git.hubrecht.ovh/hubrecht/django-bulma-forms"; + license = licenses.eupl12; + maintainers = with maintainers; [ thubrecht ]; + }; +} diff --git a/src/app/settings.py b/src/app/settings.py index e2cf96e..8982aa3 100644 --- a/src/app/settings.py +++ b/src/app/settings.py @@ -32,6 +32,7 @@ INSTALLED_APPS = [ "django.contrib.messages", "shared.staticfiles.StaticFilesApp", # Overrides the default staticfiles app to filter out the sccs sources "sass_processor", + "bulma", "dgsi", ]