1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 pytestCheckHook,
7 setuptools,
8 html5lib,
9 pillow,
10 django-cms,
11 pytest-django,
12}:
13
14buildPythonPackage rec {
15 pname = "djangocms-text-ckeditor";
16 version = "5.1.7";
17 pyproject = true;
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit version;
23 pname = "djangocms_text_ckeditor";
24 hash = "sha256-xyl2TMXzyFaRGyBDku8fu++DE0G72cYv8AstPwcVnIM=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 django-cms
31 html5lib
32 pillow
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 pytest-django
38 ];
39
40 preCheck = ''
41 export DJANGO_SETTINGS_MODULE="tests.settings"
42 '';
43
44 # Tests require module "djangocms-helper" which is not yet packaged
45 doCheck = false;
46
47 pythonImportsCheck = [ "djangocms_text_ckeditor" ];
48
49 meta = {
50 description = "Text Plugin for django CMS using CKEditor 4";
51 homepage = "https://github.com/django-cms/djangocms-text-ckeditor";
52 changelog = "https://github.com/django-cms/djangocms-text-ckeditor/blob/${version}/CHANGELOG.rst";
53 license = lib.licenses.bsd3;
54 maintainers = [ lib.maintainers.onny ];
55 };
56}