From a0d72c6597d4e0b467df0ef5537db9c29f8b6b07 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Mon, 4 Nov 2024 15:06:34 +0100 Subject: [PATCH] djangocms-text-ckeditor --- .../djangocms-text-ckeditor/default.nix | 49 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 51 insertions(+) create mode 100644 pkgs/development/python-modules/djangocms-text-ckeditor/default.nix diff --git a/pkgs/development/python-modules/djangocms-text-ckeditor/default.nix b/pkgs/development/python-modules/djangocms-text-ckeditor/default.nix new file mode 100644 index 0000000000000..9f7700ffd2e15 --- /dev/null +++ b/pkgs/development/python-modules/djangocms-text-ckeditor/default.nix @@ -0,0 +1,49 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + pytestCheckHook, + setuptools, + html5lib, + pillow, + django-cms, +}: + +buildPythonPackage rec { + pname = "djangocms-text-ckeditor"; + version = "5.1.6"; + pyproject = true; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit version; + pname = "djangocms_text_ckeditor"; + hash = "sha256-ow2S4FJkO037QUkAf3FheVl2O4BaLw1PSSCVRBhlRX0="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + django-cms + html5lib + pillow + ]; + + env.DJANGO_SETTINGS_MODULE = "tests.settings"; + + checkInputs = [ pytestCheckHook ]; + + doCheck = false; + + #pythonImportCheck = [ "django-cms" ]; + + meta = { + description = "Django Theme tailored to the needs of django CMS"; + homepage = "https://django-cms.org"; + changelog = "https://github.com/django-cms/djangocms-admin-style/releases/tag/${version}"; + license = lib.licenses.bsd3; + maintainers = [ lib.maintainers.onny ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9b1216aa27bd3..b7b93e62946e8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3312,6 +3312,8 @@ self: super: with self; { djangocms-alias = callPackage ../development/python-modules/djangocms-alias { }; + djangocms-text-ckeditor = callPackage ../development/python-modules/djangocms-text-ckeditor { }; + django-admin-datta = callPackage ../development/python-modules/django-admin-datta { }; django-admin-sortable2 = callPackage ../development/python-modules/django-admin-sortable2 { };