summary refs log tree commit diff
path: root/pkgs/servers/mail/mailman/hyperkitty.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2022-04-26 12:19:41 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2022-05-20 01:21:20 +0200
commit72a14ea563a3f5bf85db659349a533fe75a8b0ce (patch)
tree2efe0917804963ba5dbca434ded84a780df557e7 /pkgs/servers/mail/mailman/hyperkitty.nix
parent977df9de2e2705651903e7a7ba2478f52917b7e5 (diff)
downloadnixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar.gz
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar.bz2
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar.lz
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar.xz
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.tar.zst
nixpkgs-72a14ea563a3f5bf85db659349a533fe75a8b0ce.zip
mailman: refactor package structure
* Removed unused `.package`-option.
* Added explicit postgresql support.
* Create a new meta-package for mailman to make sure each component has
  the **same** python and packages can be downgraded if needed (e.g.
  psycopg2 or sqlalchemy) without interfering with `pythonPackages` in any way.
* Document why certain python overrides are needed.

Closes #170035
Closes #158424
Diffstat (limited to 'pkgs/servers/mail/mailman/hyperkitty.nix')
-rw-r--r--pkgs/servers/mail/mailman/hyperkitty.nix30
1 files changed, 3 insertions, 27 deletions
diff --git a/pkgs/servers/mail/mailman/hyperkitty.nix b/pkgs/servers/mail/mailman/hyperkitty.nix
index b84e78e323d..c10f2c1ba75 100644
--- a/pkgs/servers/mail/mailman/hyperkitty.nix
+++ b/pkgs/servers/mail/mailman/hyperkitty.nix
@@ -1,34 +1,10 @@
 { lib
-, buildPythonPackage
+, python3
 , fetchpatch
-, 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
 }:
 
+with python3.pkgs;
+
 buildPythonPackage rec {
   pname = "HyperKitty";
   # Note: Mailman core must be on the latest version before upgrading HyperKitty.