1{ 2 lib, 3 buildPythonPackage, 4 django, 5 django-extensions, 6 django-js-asset, 7 fetchFromGitHub, 8 pillow, 9 python, 10 pythonOlder, 11 selenium, 12 setuptools-scm, 13}: 14 15buildPythonPackage rec { 16 pname = "django-ckeditor"; 17 version = "6.7"; 18 format = "pyproject"; 19 20 disabled = pythonOlder "3.8"; 21 22 src = fetchFromGitHub { 23 owner = "django-ckeditor"; 24 repo = pname; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8="; 27 }; 28 29 nativeBuildInputs = [ setuptools-scm ]; 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 = [ "ckeditor" ]; 51 52 meta = with lib; { 53 description = " Django admin CKEditor integration"; 54 homepage = "https://github.com/django-ckeditor/django-ckeditor"; 55 changelog = "https://github.com/django-ckeditor/django-ckeditor/blob/${version}/CHANGELOG.rst"; 56 license = licenses.bsd3; 57 maintainers = with maintainers; [ onny ]; 58 }; 59}