1{ lib
2, buildPythonPackage
3, django
4, django-js-asset
5, fetchFromGitHub
6, python
7, setuptools-scm
8, django-extensions
9, selenium
10, pillow
11}:
12
13buildPythonPackage rec {
14 pname = "django-ckeditor";
15 version = "6.5.1";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "django-ckeditor";
20 repo = pname;
21 rev = "refs/tags/${version}";
22 hash = "sha256-Gk8mAG0WIMQZolaE1sRDmzSkfiNHi/BWiotEtIC4WLk=";
23 };
24
25 SETUPTOOLS_SCM_PRETEND_VERSION = version;
26
27 nativeBuildInputs = [
28 setuptools-scm
29 ];
30
31 propagatedBuildInputs = [
32 django
33 django-js-asset
34 pillow
35 ];
36
37 DJANGO_SETTINGS_MODULE = "ckeditor_demo.settings";
38
39 checkInputs = [
40 django-extensions
41 selenium
42 ];
43
44 checkPhase = ''
45 runHook preCheck
46 ${python.interpreter} -m django test
47 runHook postCheck
48 '';
49
50 pythonImportsCheck = [
51 "ckeditor"
52 ];
53
54 meta = with lib; {
55 description = " Django admin CKEditor integration";
56 homepage = "https://github.com/django-ckeditor/django-ckeditor";
57 license = licenses.bsd3;
58 maintainers = with maintainers; [ onny ];
59 };
60}