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
|
|
|
|
, django_treebeard
|
|
|
|
, 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-04-29 16:46:19 +00:00
|
|
|
version = "4.2.2";
|
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-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-s89gs3H//Dc3k6BLZUC4APyDgiWY9LetWAkI+kXQTf8=";
|
2023-03-30 22:05:00 +00:00
|
|
|
};
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "beautifulsoup4>=4.8,<4.12" "beautifulsoup4>=4.8"
|
|
|
|
'';
|
|
|
|
|
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-07-15 17:15:38 +00:00
|
|
|
django_treebeard
|
|
|
|
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-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 ];
|
|
|
|
};
|
|
|
|
}
|