2023-07-15 17:15:38 +00:00
|
|
|
{ lib
|
|
|
|
, anyascii
|
2023-03-30 22:05:00 +00:00
|
|
|
, beautifulsoup4
|
|
|
|
, buildPythonPackage
|
|
|
|
, callPackage
|
|
|
|
, django
|
|
|
|
, django-filter
|
|
|
|
, django-modelcluster
|
|
|
|
, django-taggit
|
2023-08-04 22:07:22 +00:00
|
|
|
, django-treebeard
|
2023-03-30 22:05:00 +00:00
|
|
|
, djangorestframework
|
|
|
|
, draftjs-exporter
|
|
|
|
, fetchPypi
|
|
|
|
, html5lib
|
|
|
|
, l18n
|
|
|
|
, openpyxl
|
|
|
|
, permissionedforms
|
|
|
|
, pillow
|
2023-07-15 17:15:38 +00:00
|
|
|
, pythonOlder
|
2023-03-30 22:05:00 +00:00
|
|
|
, requests
|
|
|
|
, telepath
|
|
|
|
, willow
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "wagtail";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "5.1.3";
|
2023-07-15 17:15:38 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-RfrHlOTCDH51sBgGnX+XYfJfqjYZ7zDfJAE8okq/mnQ=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2023-08-10 07:59:29 +00:00
|
|
|
--replace "beautifulsoup4>=4.8,<4.12" "beautifulsoup4>=4.8" \
|
2023-11-16 04:20:00 +00:00
|
|
|
--replace "draftjs_exporter>=2.1.5,<3.0" "draftjs_exporter>=2.1.5,<6.0"
|
2023-05-24 13:37:59 +00:00
|
|
|
'';
|
|
|
|
|
2023-03-30 22:05:00 +00:00
|
|
|
propagatedBuildInputs = [
|
2023-07-15 17:15:38 +00:00
|
|
|
anyascii
|
|
|
|
beautifulsoup4
|
2023-03-30 22:05:00 +00:00
|
|
|
django
|
2023-08-04 22:07:22 +00:00
|
|
|
django-treebeard
|
2023-07-15 17:15:38 +00:00
|
|
|
django-filter
|
2023-03-30 22:05:00 +00:00
|
|
|
django-modelcluster
|
|
|
|
django-taggit
|
|
|
|
djangorestframework
|
2023-07-15 17:15:38 +00:00
|
|
|
draftjs-exporter
|
2023-03-30 22:05:00 +00:00
|
|
|
html5lib
|
2023-07-15 17:15:38 +00:00
|
|
|
l18n
|
2023-03-30 22:05:00 +00:00
|
|
|
openpyxl
|
|
|
|
permissionedforms
|
2023-07-15 17:15:38 +00:00
|
|
|
pillow
|
|
|
|
requests
|
2023-03-30 22:05:00 +00:00
|
|
|
telepath
|
2023-07-15 17:15:38 +00:00
|
|
|
willow
|
2023-11-16 04:20:00 +00:00
|
|
|
] ++ willow.optional-dependencies.heif;
|
2023-03-30 22:05:00 +00:00
|
|
|
|
|
|
|
# Tests are in separate derivation because they require a package that depends
|
|
|
|
# on wagtail (wagtail-factories)
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
passthru.tests.wagtail = callPackage ./tests.nix {};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A Django content management system focused on flexibility and user experience";
|
|
|
|
homepage = "https://github.com/wagtail/wagtail";
|
|
|
|
changelog = "https://github.com/wagtail/wagtail/blob/v${version}/CHANGELOG.txt";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ sephi ];
|
|
|
|
};
|
|
|
|
}
|