Commit Graph

27 Commits

Author SHA1 Message Date
Alyssa Ross
6e732d98d8 mailmanPackages.python3.pkgs.django-allauth: 0.63.6 -> 65.16.1
As far as I can tell, the released version of django-mailman3 is not
affected by any of the issues that have required further fixes for
newer allauth, since they're all for the Fedora provider, which in
this version doesn't use allauth at all.
2026-05-07 09:14:27 +02:00
Alyssa Ross
1c4fb7aa84 mailmanPackages.python3.pkgs.django: 4.2.28 -> 5.2.9
The mailman NixOS test is passing with 5.2 now.

Link: https://github.com/NixOS/nixpkgs/issues/490868
2026-02-27 16:32:37 +01:00
Martin Weinelt
1b3d5b91c2 mailman: pin to django 4.2 2025-12-05 14:15:34 +01:00
Martin Weinelt
3d12805d1c mailman: pin to django_4
Marks the django module as broken with django>=5.1.
2025-11-25 12:39:08 -08:00
Martin Weinelt
0baff18099 mailman-web: drop patches on django-allauth, unpin hiredis 2025-08-09 19:05:25 +02:00
Silvan Mosberger
374e6bcc40 treewide: Format all Nix files
Format all Nix files using the officially approved formatter,
making the CI check introduced in the previous commit succeed:

  nix-build ci -A fmt.check

This is the next step of the of the [implementation](https://github.com/NixOS/nixfmt/issues/153)
of the accepted [RFC 166](https://github.com/NixOS/rfcs/pull/166).

This commit will lead to merge conflicts for a number of PRs,
up to an estimated ~1100 (~33%) among the PRs with activity in the past 2
months, but that should be lower than what it would be without the previous
[partial treewide format](https://github.com/NixOS/nixpkgs/pull/322537).

Merge conflicts caused by this commit can now automatically be resolved while rebasing using the
[auto-rebase script](8616af08d9/maintainers/scripts/auto-rebase).

If you run into any problems regarding any of this, please reach out to the
[formatting team](https://nixos.org/community/teams/formatting/) by
pinging @NixOS/nix-formatting.
2025-04-01 20:10:43 +02:00
Sandro Jäckel
97d6186f94 mailmanPackages: pin older django-allauth 2025-01-18 01:08:13 +01:00
Alyssa Ross
b681022ae8 mailmanPackages.python.pkgs.hiredis: fix override
error: fetchFromGitHub requires one of either `rev` or `tag` to be provided (not both).

Fixes: 0cd04d3036 ("treewide: migrate fetchgit `rev = "refs/tags/..."` to `tag`")
2025-01-17 16:06:17 +01:00
Sandro Jäckel
1b8f54d2a1 mailmanPackages.hyperkitty: 1.3.9 -> 1.3.12 2024-12-13 13:54:37 +01:00
Alyssa Ross
f34ee18635 mailmanPackages.postorius: use optional-dependencies
We have a mechanism for this — we don't need an overlay hack.

Fixes: 04952ac5c3 ("mailmanPackages.python3: fix markdown support")
2024-08-07 13:27:50 +02:00
adisbladis
e0816431a2 treewide: Pass self when overriding Python
Otherwise references to the Python interpreter inside the set are wrong, as demonstrated by:
``` nix
with import <nixpkgs> { };
let
  python' = python3.override {
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the _non_ overriden requests.

And the same with `self`:
```
with import <nixpkgs> { };
let
  python' = python3.override {
    self = python';
    packageOverrides = final: prev: { requests = prev.requests.overridePythonAttrs(old: { version = "1337";  }); };
  };
in python'.pkgs.python.pkgs.requests
```
which returns the overriden requests.

This can manifest itself as file collisions when constructing environments or as subtly incorrect dependency graphs.
2024-08-03 12:18:56 +12:00
Franz Pletz
04952ac5c3 mailmanPackages.python3: fix markdown support
Fixes the issue reported at
https://gitlab.com/mailman/mailman/-/issues/1137. The readme-renderer
package needs cmarkgfm for markdown support. Mailman's postorious needs
this to render the info field of mailing lists.
2024-06-20 02:10:09 +02:00
Alyssa Ross
004613a60f mailmanPackages.hyperkitty: 1.3.8 -> 1.3.9
Doesn't seem to be out on PyPI yet, but they have a release tarball.

Hyperkitty has migrated to pyproject.toml, and no longer requires an
outdated version of mistune.  Yay!
2024-03-09 08:01:31 +01:00
Alyssa Ross
ae517a3941 mailmanPackages.python3.pkgs.redis: 4.5.4 -> 4.6.0 2024-01-22 13:17:01 +01:00
Alyssa Ross
78b9406b41 mailmanPackages.hyperkitty: 1.3.7 -> 1.3.8 2024-01-22 13:17:01 +01:00
Alyssa Ross
6e2323caad Revert "mailmanPackages: pin to django_3"
This reverts commit 84f6a6755a.

Mailman now supports Django 4.x.

Link: https://github.com/NixOS/nixpkgs/issues/262907
2023-11-09 12:17:25 +01:00
Alyssa Ross
0d910a60ef mailmanPackages: pin elasticsearch to 7.17.9
Hyperkitty's tests fail with 8.x, because it tries and fails to import
elastic_transport.  There are 7.17.10 and 7.17.11 releases, but for
unknown reasons they're not available on PyPI.

Link: https://github.com/elastic/elasticsearch-py/issues/2336
2023-10-11 20:20:16 +00:00
Alyssa Ross
755ef90835 mailmanPackages: pin redis to 4.5.4 2023-10-11 20:20:15 +00:00
Robert Schütz
98152f67b9 mailman-hyperkitty: pin mistune at 2.0.5 2023-09-15 09:34:30 -07:00
Jan Tojnar
86f6b16d28 Merge branch 'master' into staging-next
Conflicts:
- pkgs/servers/mail/mailman/python.nix (relevant to mailman-web)
  between f8a17e4200 and 84f6a6755a
2023-08-15 21:39:20 +02:00
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
Martin Weinelt
84f6a6755a mailmanPackages: pin to django_3 2023-08-03 14:35:39 +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