1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 django,
6 pythonOlder,
7 setuptools,
8 pytestCheckHook,
9 pytest-django,
10}:
11
12buildPythonPackage rec {
13 pname = "django-tinymce";
14 version = "4.1.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit version;
21 pname = "django_tinymce";
22 hash = "sha256-AuO3DpQP0pnw++9DFa7lwYVmTh64zTlrF2ljlU5DV8k=";
23 };
24
25 build-system = [ setuptools ];
26
27 dependencies = [ django ];
28
29 DJANGO_SETTINGS_MODULE = "tests.settings";
30
31 checkInputs = [
32 pytest-django
33 pytestCheckHook
34 ];
35
36 pythonImportsCheck = [ "tinymce" ];
37
38 meta = {
39 description = "Django application that contains a widget to render a form field as a TinyMCE editor";
40 homepage = "https://github.com/jazzband/django-tinymce";
41 changelog = "https://github.com/jazzband/django-tinymce/blob/${version}/CHANGELOG.rst";
42 license = lib.licenses.mit;
43 maintainers = [ lib.maintainers.onny ];
44 };
45}