depot/third_party/nixpkgs/pkgs/development/python-modules/django-ckeditor/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

62 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, django
, django-extensions
, django-js-asset
, fetchFromGitHub
, pillow
, python
, pythonOlder
, selenium
, setuptools-scm
}:
buildPythonPackage rec {
pname = "django-ckeditor";
version = "6.7";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "django-ckeditor";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8=";
};
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";
changelog = "https://github.com/django-ckeditor/django-ckeditor/blob/${version}/CHANGELOG.rst";
license = licenses.bsd3;
maintainers = with maintainers; [ onny ];
};
}