Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mailman fixes for staging-next #260527

Merged
merged 11 commits into from
Oct 20, 2023
Merged

Mailman fixes for staging-next #260527

merged 11 commits into from
Oct 20, 2023

Conversation

alyssais
Copy link
Member

Description of changes

All this is required for the Mailman NixOS test to pass again after #251878.

Many (but not all) of our problems come from the fact that the Mailman Python package set is pinned to Django 3.x, which doesn't support Python 3.11, which is now the default. (Django 3.x will also be EOL soon-ish.) It looks like maybe Mailman's web stuff should support Django 4.x, but I wanted to get it working again first before making big changes like that. I'll look into upgrading to Django 4.x next if I'm able.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Upstream has now fixed the tests we were previously disabling
ourselves, but in the meantime yet another test has started failing.
mailman is incompatible with importlib-resources 6.x, and upstream
have decided to remove the dependency.

Fixes: 3c86835 ("python3Packages.importlib-resources: 5.12.0 -> 6.0.1")
Link: https://gitlab.com/mailman/mailman/-/issues/1093
At least since e161990 ("mailman: remove docutils input"), we
rely on sphinx being a Python library package for our Python version,
so that it propagates a compatible docutils.  Taking sphinx from the
top level therefore won't work right if it's using a different Python
version.
If they differ, uwsgi will fail to start, because it won't be able to
find the appropriate libraries.
We have Mailman's Python package set pinned to Django 3, which doesn't
support Python 3.11.
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: elastic/elasticsearch-py#2336
Fixes: 37ead19 ("python311Packages.django-allauth: 0.54.0 -> 0.55.2")
@alyssais alyssais requested a review from peti as a code owner October 11, 2023 20:28
@github-actions github-actions bot added 6.topic: python 6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 8.has: module (update) This PR changes an existing module in `nixos/` labels Oct 11, 2023
@vcunat vcunat merged commit 9320d9e into NixOS:staging-next Oct 20, 2023
24 checks passed
@alyssais alyssais deleted the mailman branch October 21, 2023 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: nixos Issues or PRs affecting NixOS modules, or package usability issues specific to NixOS 6.topic: python 8.has: module (update) This PR changes an existing module in `nixos/` 10.rebuild-darwin: 11-100 10.rebuild-linux: 11-100
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants