Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / django-ckeditor / default.nix
blobb0df11aefd0c801aa8c97db32f841b7cc549b299
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
14 buildPythonPackage rec {
15   pname = "django-ckeditor";
16   version = "6.7";
17   format = "pyproject";
19   disabled = pythonOlder "3.8";
21   src = fetchFromGitHub {
22     owner = "django-ckeditor";
23     repo = pname;
24     rev = "refs/tags/${version}";
25     hash = "sha256-mZQ5s3YbumYmT0zRWPFIvzt2TbtDLvVcJjZVAwn31E8=";
26   };
28   SETUPTOOLS_SCM_PRETEND_VERSION = version;
30   nativeBuildInputs = [
31     setuptools-scm
32   ];
34   propagatedBuildInputs = [
35     django
36     django-js-asset
37     pillow
38   ];
40   DJANGO_SETTINGS_MODULE = "ckeditor_demo.settings";
42   checkInputs = [
43     django-extensions
44     selenium
45   ];
47   checkPhase = ''
48     runHook preCheck
49     ${python.interpreter} -m django test
50     runHook postCheck
51   '';
53   pythonImportsCheck = [
54     "ckeditor"
55   ];
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   };