Commit Graph

180 Commits

Author SHA1 Message Date
Alyssa Ross
ac529af6b7 mailmanPackages.hyperkitty: backport mistune fix 2026-07-15 16:43:50 +02:00
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
1441da331a mailman: 3.3.9 -> 3.3.10 2026-05-07 09:06:24 +02:00
Alyssa Ross
1abd4ccdd3 mailmanPackages.postorius: 1.3.10 -> 1.3.13
Even though the previous version worked fine with our current Django,
this version adds a tight version check, so we have to backport the
unreleased loosening of that check.
2026-05-07 09:06:24 +02:00
Alyssa Ross
950196cec3 mailmanPackages.postorius: backport security fix 2026-05-07 07:40:51 +02:00
Jack Rosenberg
ccf5538a87 treewide: migrate to finalAttrs 2026-04-20 00:28:40 +02:00
Alyssa Ross
a0f2f70a18 Revert "mailman: pin to python312 for django 4.2 support"
This reverts commit bc05bb5851.

We're now using Django 5.2.
2026-02-27 16:33:08 +01: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
Alyssa Ross
638958e9ae mailmanPackages.web: backport Django 5.2 compat 2026-02-21 16:33:16 +01:00
Alyssa Ross
bbd173f6bb mailmanPackages.hyperkitty: backport Django 5.2 compat 2026-02-21 16:33:13 +01:00
Robert Schütz
1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00
Martin Weinelt
bc05bb5851 mailman: pin to python312 for django 4.2 support 2025-12-26 17:46:53 +01:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +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
Wolfgang Walther
5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Martin Weinelt
ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Alyssa Ross
be2ebf5421 mailman: backport Python 3.13 fix
Fixes: https://github.com/NixOS/nixpkgs/issues/418498
2025-06-21 11:39:25 +02:00
Alyssa Ross
82bdd923e5 mailman: add missing standard-nntplib dependency
Required with Python 3.13.
2025-06-21 10:17:28 +02:00
Yureka
a0f99b458f mailmanPackages.hyperkitty: fix build with python 3.13 2025-06-21 10:07: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
Yureka
948f94167e [staging-next] mailmanPackages.hyperkitty: fix build with mistune >= 3.1 (#379578)
mailmanPackages.hyperkitty: fix build with mistune >= 3.1
2025-02-05 20:12:33 +01: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
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Fabian Affolter
dd1bf6abbb Merge pull request #332934 from fabaff/dvc-bump
python312Packages.flufl-lock: 7.1.1 -> 8.1.0 , dvc: 3.51.2 -> 3.53.1
2024-08-08 22:08:29 +02: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
Fabian Affolter
6a7037fc9f mailman: refactor 2024-08-07 11:55:17 +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
aleksana
07c1bc2034 treewide: sha256 -> hash attribute for pypi fetchers 2024-07-14 01:25:22 +08: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
a8dbe01264 mailman-web: 0.0.8 -> 0.0.9 2024-05-22 18:24:51 +02:00
stuebinm
ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01: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
natsukium
97e79119f2 python311Packages.flufl-i18n: rename from flufl_i18n 2024-02-02 19:43:34 +01:00
natsukium
13b149cdaa python311Packages.flufl-bounce: rename from flufl_bounce 2024-02-02 19:43:33 +01:00
natsukium
9e74247757 python311Packages.flufl-lock: rename from flufl_lock 2024-02-02 19:43:33 +01:00
Felix Bühler
65342bb7a0 python311Packages.readme-renderer: rename from readme_renderer (#279385) 2024-01-22 17:19:13 -05:00
Alyssa Ross
ae517a3941 mailmanPackages.python3.pkgs.redis: 4.5.4 -> 4.6.0 2024-01-22 13:17:01 +01:00
Alyssa Ross
a5d263af01 mailman-web: 0.0.6 -> 0.0.8 2024-01-22 13:17:01 +01:00
Alyssa Ross
7d1649fca8 mailmanPackages.postorius: 1.3.8 -> 1.3.10 2024-01-22 13:17:01 +01:00
Alyssa Ross
f5804016bb mailman: 3.3.8 -> 3.3.9 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
c3b2d5e5db mailman: remove obsolete substitution 2024-01-22 13:17:01 +01:00
Alyssa Ross
7016fa4559 mailmanPackages.hyperkitty: remove obsolete patches
The test failure only happened with Python 3.10.  We use 3.11 by
default, and there's not really any reason to change it, so I don't
think we need to keep that patch around.
2024-01-22 13:17:01 +01:00
Alyssa Ross
76724dbc57 mailmanPackages,python3.pkgs.django-mailman3: add NixOS test to passthru.tests 2024-01-20 11:12:43 +01:00
Felix Buehler
63f5f08857 python311Packages.zope-*: rename from zope_* 2024-01-06 21:04:16 +01:00