diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix | 50 |
1 files changed, 21 insertions, 29 deletions
diff --git a/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix b/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix index d1e4581789e0..7f221617878c 100644 --- a/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix +++ b/nixpkgs/pkgs/servers/mail/mailman/hyperkitty.nix @@ -1,33 +1,10 @@ { lib -, buildPythonPackage -, fetchPypi -, pythonOlder - -# dependencies -, defusedxml -, django -, django-gravatar2 -, django-haystack -, django-mailman3 -, django-paintstore -, django-q -, django_compressor -, django-extensions -, djangorestframework -, flufl_lock -, mistune_2_0 -, networkx -, psycopg2 -, python-dateutil -, robot-detection - -# tests -, beautifulsoup4 -, elasticsearch -, mock -, whoosh +, python3 +, fetchpatch }: +with python3.pkgs; + buildPythonPackage rec { pname = "HyperKitty"; # Note: Mailman core must be on the latest version before upgrading HyperKitty. @@ -40,6 +17,21 @@ buildPythonPackage rec { sha256 = "sha256-gmkiK8pIHfubbbxNdm/D6L2o722FptxYgINYdIUOn4Y="; }; + patches = [ + # FIXME: backport Python 3.10 support fix, remove for next release + (fetchpatch { + url = "https://gitlab.com/mailman/hyperkitty/-/commit/551a44a76e46931fc5c1bcb341235d8f579820be.patch"; + sha256 = "sha256-5XCrvyrDEqH3JryPMoOXSlVVDLQ+PdYBqwGYxkExdvk="; + includes = [ "hyperkitty/*" ]; + }) + + # Fix for Python >=3.9.13 + (fetchpatch { + url = "https://gitlab.com/mailman/hyperkitty/-/commit/3efe7507944dbdbfcfa4c182d332528712476b28.patch"; + sha256 = "sha256-yXuhTbmfDiYEXEsnz+zp+xLHRqI4GtkOhGHN+37W0iQ="; + }) + ]; + postPatch = '' # isort is a development dependency sed -i '/isort/d' setup.py @@ -54,11 +46,11 @@ buildPythonPackage rec { django-haystack django-mailman3 django-q - django_compressor + django-compressor django-extensions djangorestframework flufl_lock - mistune_2_0 + mistune networkx psycopg2 python-dateutil |