2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
76 lines
1.6 KiB
Nix
76 lines
1.6 KiB
Nix
{ lib
|
|
, anyascii
|
|
, beautifulsoup4
|
|
, buildPythonPackage
|
|
, callPackage
|
|
, django
|
|
, django-filter
|
|
, django-modelcluster
|
|
, django-taggit
|
|
, django-treebeard
|
|
, djangorestframework
|
|
, draftjs-exporter
|
|
, fetchPypi
|
|
, html5lib
|
|
, l18n
|
|
, openpyxl
|
|
, permissionedforms
|
|
, pillow
|
|
, pythonOlder
|
|
, requests
|
|
, telepath
|
|
, willow
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "wagtail";
|
|
version = "5.1.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-RfrHlOTCDH51sBgGnX+XYfJfqjYZ7zDfJAE8okq/mnQ=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "beautifulsoup4>=4.8,<4.12" "beautifulsoup4>=4.8" \
|
|
--replace "draftjs_exporter>=2.1.5,<3.0" "draftjs_exporter>=2.1.5,<6.0"
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
anyascii
|
|
beautifulsoup4
|
|
django
|
|
django-treebeard
|
|
django-filter
|
|
django-modelcluster
|
|
django-taggit
|
|
djangorestframework
|
|
draftjs-exporter
|
|
html5lib
|
|
l18n
|
|
openpyxl
|
|
permissionedforms
|
|
pillow
|
|
requests
|
|
telepath
|
|
willow
|
|
] ++ willow.optional-dependencies.heif;
|
|
|
|
# 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 ];
|
|
};
|
|
}
|