From ff4db3b527319f32b805e7cef21a6abe49870498 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Thu, 24 Oct 2024 08:06:37 +0200 Subject: [PATCH] python3Packages.django-tinymce: init at 4.1.0 --- .../python-modules/django-tinymce/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/django-tinymce/default.nix diff --git a/pkgs/development/python-modules/django-tinymce/default.nix b/pkgs/development/python-modules/django-tinymce/default.nix new file mode 100644 index 0000000000000..a0eb660c1da98 --- /dev/null +++ b/pkgs/development/python-modules/django-tinymce/default.nix @@ -0,0 +1,45 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + django, + pythonOlder, + setuptools, + pytestCheckHook, + pytest-django, +}: + +buildPythonPackage rec { + pname = "django-tinymce"; + version = "4.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchPypi { + inherit version; + pname = "django_tinymce"; + hash = "sha256-AuO3DpQP0pnw++9DFa7lwYVmTh64zTlrF2ljlU5DV8k="; + }; + + build-system = [ setuptools ]; + + dependencies = [ django ]; + + DJANGO_SETTINGS_MODULE = "tests.settings"; + + checkInputs = [ + pytest-django + pytestCheckHook + ]; + + pythonImportsCheck = [ "tinymce" ]; + + meta = { + description = "Django application that contains a widget to render a form field as a TinyMCE editor"; + homepage = "https://github.com/jazzband/django-tinymce"; + changelog = "https://github.com/jazzband/django-tinymce/blob/${version}/CHANGELOG.rst"; + license = lib.licenses.mit; + maintainers = [ lib.maintainers.onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0be604250f507..52032e3ce5a1b 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3580,6 +3580,8 @@ self: super: with self; { django-timezone-field = callPackage ../development/python-modules/django-timezone-field { }; + django-tinymce = callPackage ../development/python-modules/django-tinymce { }; + django-treebeard = callPackage ../development/python-modules/django-treebeard { }; django-two-factor-auth = callPackage ../development/python-modules/django-two-factor-auth { };