Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / django-ckeditor / default.nix
blob530efc2a56140256e3f708fb3c08981deffc8f92
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   nativeBuildInputs = [
29     setuptools-scm
30   ];
32   propagatedBuildInputs = [
33     django
34     django-js-asset
35     pillow
36   ];
38   DJANGO_SETTINGS_MODULE = "ckeditor_demo.settings";
40   checkInputs = [
41     django-extensions
42     selenium
43   ];
45   checkPhase = ''
46     runHook preCheck
47     ${python.interpreter} -m django test
48     runHook postCheck
49   '';
51   pythonImportsCheck = [
52     "ckeditor"
53   ];
55   meta = with lib; {
56     description = " Django admin CKEditor integration";
57     homepage = "https://github.com/django-ckeditor/django-ckeditor";
58     changelog = "https://github.com/django-ckeditor/django-ckeditor/blob/${version}/CHANGELOG.rst";
59     license = licenses.bsd3;
60     maintainers = with maintainers; [ onny ];
61   };