python312Packages.wagtail: cleanup, add missing django-tasks dependency

This commit is contained in:
Gaetan Lepage
2025-04-18 13:57:39 +02:00
parent 367a90c142
commit b92477f4ec
@@ -1,58 +1,61 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
anyascii,
beautifulsoup4,
buildPythonPackage,
callPackage,
django,
django-filter,
django-modelcluster,
django-taggit,
django-tasks,
django-treebeard,
djangorestframework,
draftjs-exporter,
fetchPypi,
html5lib,
l18n,
laces,
openpyxl,
permissionedforms,
pillow,
pythonOlder,
requests,
telepath,
willow,
# tests
callPackage,
}:
buildPythonPackage rec {
pname = "wagtail";
version = "6.4.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-zsPm1JIKbRePoetvSvgLNw/dVXDtkkuXkQThV/EMoJc=";
src = fetchFromGitHub {
owner = "wagtail";
repo = "wagtail";
tag = "v${version}";
hash = "sha256-2qixbJK3f+3SBnsfVEcObFJmuBvE2J9o3LIkILZQRLQ=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "django-filter>=23.3,<24" "django-filter>=23.3,<24.3"
'';
build-system = [
setuptools
];
propagatedBuildInputs = [
dependencies = [
anyascii
beautifulsoup4
django
django-treebeard
django-filter
django-modelcluster
django-taggit
django-tasks
django-treebeard
djangorestframework
draftjs-exporter
html5lib
l18n
laces
openpyxl
permissionedforms
@@ -70,12 +73,12 @@ buildPythonPackage rec {
pythonImportsCheck = [ "wagtail" ];
meta = with lib; {
meta = {
description = "Django content management system focused on flexibility and user experience";
mainProgram = "wagtail";
homepage = "https://github.com/wagtail/wagtail";
changelog = "https://github.com/wagtail/wagtail/blob/v${version}/CHANGELOG.txt";
license = licenses.bsd3;
maintainers = with maintainers; [ sephi ];
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ sephi ];
};
}