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