1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 django,
6 pythonOlder,
7 pytestCheckHook,
8 setuptools,
9 django-parler,
10 django-cms,
11 distutils,
12 pytest-django,
13 beautifulsoup4,
14 python,
15 django-app-helper,
16}:
17
18buildPythonPackage rec {
19 pname = "djangocms-alias";
20 version = "2.0.5";
21 pyproject = true;
22
23 disabled = pythonOlder "3.9";
24
25 src = fetchFromGitHub {
26 owner = "django-cms";
27 repo = "djangocms-alias";
28 tag = version;
29 hash = "sha256-sMMqX4+R4VZveIEV779WqYnZYH/fqZihyxFDAKwlWn0=";
30 };
31
32 build-system = [ setuptools ];
33
34 dependencies = [
35 django
36 django-cms
37 django-parler
38 ];
39
40 checkInputs = [
41 beautifulsoup4
42 distutils
43 django-app-helper
44 pytestCheckHook
45 pytest-django
46 ];
47
48 checkPhase = ''
49 runHook preCheck
50 ${python.interpreter} test_settings.py
51 runHook postCheck
52 '';
53
54 # Disable tests because dependency djangocms-versioning isn't packaged yet.
55 doCheck = false;
56
57 pythonImportsCheck = [ "djangocms_alias" ];
58
59 meta = {
60 description = "Lean enterprise content management powered by Django";
61 homepage = "https://django-cms.org";
62 changelog = "https://github.com/django-cms/djangocms-alias/releases/tag/${src.tag}";
63 license = lib.licenses.bsd3;
64 maintainers = [ lib.maintainers.onny ];
65 };
66}