push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,86 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
django,
pythonOlder,
setuptools,
django-classy-tags,
django-formtools,
django-treebeard,
django-sekizai,
djangocms-admin-style,
python,
dj-database-url,
djangocms-text-ckeditor,
fetchpatch,
django-cms,
gettext,
iptools,
}:
buildPythonPackage rec {
pname = "django-cms";
version = "5.0.4";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "django-cms";
repo = "django-cms";
tag = version;
hash = "sha256-bhF1FJO+EHg49ZnwykVmyM/kkdXMCyfoV+EFQ5IZFF4=";
};
build-system = [ setuptools ];
dependencies = [
django
django-classy-tags
django-formtools
django-treebeard
django-sekizai
djangocms-admin-style
];
nativeCheckInputs = [ gettext ];
checkInputs = [
dj-database-url
djangocms-text-ckeditor
iptools
];
preCheck = ''
# Disable ruff formatter test
rm cms/tests/test_static_analysis.py
'';
checkPhase = ''
runHook preCheck
${python.interpreter} manage.py test
runHook postCheck
'';
# Tests depend on djangocms-text-ckeditor and djangocms-admin-style,
# which depends on this package.
# To avoid infinite recursion, we only enable tests when building passthru.tests.
doCheck = false;
passthru.tests = {
runTests = django-cms.overridePythonAttrs (_: {
doCheck = true;
});
};
pythonImportsCheck = [ "cms" ];
meta = {
description = "Lean enterprise content management powered by Django";
homepage = "https://django-cms.org";
changelog = "https://github.com/django-cms/django-cms/releases/tag/${src.tag}";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.onny ];
};
}