2023-03-30 22:05:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, django
|
2023-08-22 20:05:09 +00:00
|
|
|
, django-extensions
|
2023-03-30 22:05:00 +00:00
|
|
|
, django-js-asset
|
|
|
|
, fetchFromGitHub
|
2023-08-22 20:05:09 +00:00
|
|
|
, pillow
|
2023-03-30 22:05:00 +00:00
|
|
|
, python
|
2023-08-22 20:05:09 +00:00
|
|
|
, pythonOlder
|
2023-03-30 22:05:00 +00:00
|
|
|
, selenium
|
2023-08-22 20:05:09 +00:00
|
|
|
, setuptools-scm
|
2023-03-30 22:05:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "django-ckeditor";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "6.7";
|
2023-03-30 22:05:00 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django-ckeditor";
|
|
|
|
repo = pname;
|
|
|
|
rev = "refs/tags/${version}";
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
django
|
|
|
|
django-js-asset
|
|
|
|
pillow
|
|
|
|
];
|
|
|
|
|
|
|
|
DJANGO_SETTINGS_MODULE = "ckeditor_demo.settings";
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
django-extensions
|
|
|
|
selenium
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
runHook preCheck
|
|
|
|
${python.interpreter} -m django test
|
|
|
|
runHook postCheck
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ckeditor"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = " Django admin CKEditor integration";
|
|
|
|
homepage = "https://github.com/django-ckeditor/django-ckeditor";
|
2023-08-22 20:05:09 +00:00
|
|
|
changelog = "https://github.com/django-ckeditor/django-ckeditor/blob/${version}/CHANGELOG.rst";
|
2023-03-30 22:05:00 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ onny ];
|
|
|
|
};
|
|
|
|
}
|