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