Commit Graph

6 Commits

Author SHA1 Message Date
Maximilian Bosch
f8a17e4200
mailman/python: remove obsolete almebic override, add explanation why this empty overlay should be kept 2023-08-15 12:36:23 +02:00
Maximilian Bosch
8b45dd8698
mailmanPackages: remove psycopg2 pin
This hack was necessary for django 2.x[1] which was the default `django`
version (i.e. current LTS) when this fix was needed. However, 2.x is now
EOL and not packaged anymore and mailman is running with django3, so
this can be dropped.

[1] https://github.com/psycopg/psycopg2/issues/1293
2023-08-12 13:51:10 +02:00
Maximilian Bosch
2cefe69f6f
mailmanPackages.python: allow changing python package-set used for mailman
When having a patch for a python module that should only be used for
mailman, but for nothing else, it's now possible to apply it like this:

    self: super: {
      mailmanPackages = super.mailmanPackages.extend (mailmanSelf: mailmanSuper: {
	python3 = mailmanSuper.python3.override {
	  overlay = pythonSelf: pythonSuper: {
	    psycopg2 = /* ... */;
	  };
	};
      });
    }

The underlying issue is that the `packageOverrides`-mechanism of
`pkgs.python3` doesn't compose, so an optional overlay is manually
applied to the `python3` used for mailman.
2023-08-12 13:51:10 +02:00
figsoda
22ec7aebbc treewide/servers: use top-level fetchPypi 2023-05-25 12:06:38 -04:00
Kirill Radzikhovskyy
48c2d3284a mailman: 3.3.5 -> 3.3.8 supports latest sqlalchemy 2023-02-11 06:28:05 +11:00
Maximilian Bosch
72a14ea563
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
2022-05-20 01:21:20 +02:00