depot/third_party/nixpkgs/pkgs/development/python-modules/wagtail/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

81 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,
laces,
openpyxl,
permissionedforms,
pillow,
pythonOlder,
requests,
telepath,
willow,
}:
buildPythonPackage rec {
pname = "wagtail";
version = "6.0.2";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-58/DwPU/swLxeY8OAqesYHirAusOhwPA9xzL0/GOOG8=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "django-filter>=23.3,<24" "django-filter>=23.3,<24.3"
'';
propagatedBuildInputs = [
anyascii
beautifulsoup4
django
django-treebeard
django-filter
django-modelcluster
django-taggit
djangorestframework
draftjs-exporter
html5lib
l18n
laces
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 { };
pythonImportsCheck = [ "wagtail" ];
meta = with lib; {
description = "A 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 ];
};
}