nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytestCheckHook,
6 setuptools,
7 html5lib,
8 pillow,
9 django-cms,
10 pytest-django,
11}:
12
13buildPythonPackage rec {
14 pname = "djangocms-text-ckeditor";
15 version = "5.1.7";
16 pyproject = true;
17
18 src = fetchPypi {
19 inherit version;
20 pname = "djangocms_text_ckeditor";
21 hash = "sha256-xyl2TMXzyFaRGyBDku8fu++DE0G72cYv8AstPwcVnIM=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 django-cms
28 html5lib
29 pillow
30 ];
31
32 nativeCheckInputs = [
33 pytestCheckHook
34 pytest-django
35 ];
36
37 preCheck = ''
38 export DJANGO_SETTINGS_MODULE="tests.settings"
39 '';
40
41 # Tests require module "djangocms-helper" which is not yet packaged
42 doCheck = false;
43
44 pythonImportsCheck = [ "djangocms_text_ckeditor" ];
45
46 meta = {
47 description = "Text Plugin for django CMS using CKEditor 4";
48 homepage = "https://github.com/django-cms/djangocms-text-ckeditor";
49 changelog = "https://github.com/django-cms/djangocms-text-ckeditor/blob/${version}/CHANGELOG.rst";
50 license = lib.licenses.bsd3;
51 maintainers = [ lib.maintainers.onny ];
52 };
53}