1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
84 lines
1.7 KiB
Nix
84 lines
1.7 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
django,
|
|
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.5";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "django-cms";
|
|
repo = "django-cms";
|
|
tag = version;
|
|
hash = "sha256-s7sgENs1A5weAiZ2zQYIbAKFOWR3Jmhbsli3vLyqi/4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|