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