Commit Graph

2158 Commits

Author SHA1 Message Date
Martin Weinelt
08aed995ea python3: fix passthru tests after b937eac 2025-07-23 00:52:19 +02:00
Martin Weinelt
71a749810c python314: 3.14.0b4 -> 3.14.0rc1
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0rc1
2025-07-23 00:32:31 +02:00
Wolfgang Walther
38002286d7 python3Packages.setuptoolsCheckHook: move to aliases
This had already been removed and should be an alias now.
2025-07-20 12:04:57 +02:00
nixpkgs-ci[bot]
76b50d86bc Merge master into staging-next 2025-07-09 00:18:18 +00:00
Martin Weinelt
bae9fdacc3 python314: 3.14.0b3 -> 3.14.0b4
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-4
2025-07-08 18:56:10 +02:00
Alyssa Ross
e0910df589 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/by-name/me/meson/package.nix
2025-07-02 14:49:42 +02:00
Martin Weinelt
d2e9be2b07 buildPython*: throw on empty format
This is the ratchet that disallows introducing new python packages that
do not define a package format.
2025-07-02 10:18:35 +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
Martin Weinelt
9bf73b68ec python3Packages.sphinxHook: move to preFixupPhases (#416771) 2025-06-24 14:57:40 +02:00
Guillaume Girol
2ab3ac5c2b separateDebugInfo: add symlinks to executable and source for debuginfod support (#394674) 2025-06-20 23:09:03 +02:00
nixpkgs-ci[bot]
dc29423237 Merge staging-next into staging 2025-06-18 00:18:04 +00:00
nixpkgs-ci[bot]
93aa3b82df Merge master into staging-next 2025-06-18 00:17:19 +00:00
Martin Weinelt
79558756d1 python314: 3.14.0b2 -> 3.14.0b3
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-3
2025-06-18 00:40:46 +02:00
Guillaume Girol
832e521ef9 python: __structuredAttrs = true
needed by separateDebugInfo = true
2025-06-14 22:14:56 +02:00
Anton Mosich
facae77bf5 python3Packages.sphinxHook: move to preFixupPhases
If sphinxHook runs before the fixup phase, possibly generated manpages
will get compressed in the fixup phase.
2025-06-14 21:23:01 +02:00
Martin Weinelt
c4fa80e7e3 python313: 3.13.4 -> 3.13.5 (#416039) 2025-06-14 00:19:47 +02:00
Martin Weinelt
70b32c168d python313: 3.13.4 -> 3.13.5
https://docs.python.org/release/3.13.5/whatsnew/changelog.html
2025-06-12 06:19:25 +02:00
DavHau
516e32cd7c python3Minimal: remove dependency on libffi
This makes python3Minimal mor minimal

When working on https://github.com/NixOS/nixpkgs/pull/405822 I assumed that libffi was a mandatory dependency of python, but it's not.
2025-06-11 11:44:17 +07:00
K900
7479f39034 Merge remote-tracking branch 'origin/master' into staging-next 2025-06-09 18:08:45 +03:00
natsukium
94552b6dbd python314: address CVE-2025-4517, CVE-2025-4330, CVE-2025-4138, CVE-2024-12718, CVE-2025-4435
https://mail.python.org/archives/list/security-announce@python.org/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/

https://www.cve.org/CVERecord?id=CVE-2025-4517
https://www.cve.org/CVERecord?id=CVE-2025-4330
https://www.cve.org/CVERecord?id=CVE-2025-4138
https://www.cve.org/CVERecord?id=CVE-2024-12718
https://www.cve.org/CVERecord?id=CVE-2025-4435
2025-06-09 19:43:43 +09:00
Martin Weinelt
05ed4c6594 python310: 3.10.17 -> 3.10.18
https://docs.python.org/release/3.10.18/whatsnew/changelog.html

Fixes: CVE=2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:10 +02:00
Martin Weinelt
3fffba538e python311: 3.11.12 -> 3.11.13
https://docs.python.org/release/3.11.13/whatsnew/changelog.html

Fixes: CVE=2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:10 +02:00
Martin Weinelt
8cbadfa068 python312: 3.12.10 -> 3.12.11
https://docs.python.org/release/3.12.11/whatsnew/changelog.html

Fixes: CVE-2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:09 +02:00
Martin Weinelt
c83cbd4c6f python313: 3.13.3 -> 3.13.4
https://docs.python.org/release/3.13.4/whatsnew/changelog.html

Fixes: CVE-2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:05 +02:00
nixpkgs-ci[bot]
5b0186d6f8 Merge master into staging-next 2025-06-01 18:04:52 +00:00
Sergei Trofimovich
dc251ab95c pythonInterpreters.pypy310_prebuilt: set mainProgram
Without the change the eval fails as:

    $ nix build --no-link -f. pythonInterpreters.pypy310_prebuilt.tests.test-packageOverrides
    error:
       … in the condition of the assert statement
         at pkgs/development/interpreters/python/tests.nix:212:11:
          211|           in
          212|           assert myPython.pkgs.foobar == myPython.pkgs.numpy;
             |           ^
          213|           myPython.withPackages (ps: with ps; [ foobar ]);

       … while evaluating the attribute 'outPath'
         at lib/customisation.nix:421:7:
          420|         drv.drvPath;
          421|       outPath =
             |       ^
          422|         assert condition;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'mainProgram' missing
       at pkgs/by-name/me/meson/package.nix:75:52:
           74|           --replace-fail "PythonExternalProgram('python3', mesonlib.python_command)" \
           75|                          "PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command)"
             |                                                    ^
           76|         substituteInPlace mesonbuild/modules/python3.py \
2025-06-01 10:06:49 +01:00
Martin Weinelt
4fa55ce14d Merge remote-tracking branch 'origin/master' into staging-next 2025-05-31 13:30:35 +02:00
Kamil Monicz
554c97036d python314: add zstd dependency (#409307) 2025-05-31 16:18:46 +09:00
nixpkgs-ci[bot]
3025596725 Merge master into staging-next 2025-05-31 00:16:33 +00:00
Alyssa Ross
cc5ca4513f python313: fix static for x86_64-linux
Tries to build a shared library.
2025-05-30 20:44:09 +02:00
K900
a3612e2210 Merge remote-tracking branch 'origin/staging-next' into staging 2025-05-28 11:42:18 +03:00
Martin Weinelt
d90442cfc0 python314: 3.14.0-b1 -> 3.14.0-b2
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-2
2025-05-27 09:22:37 +02:00
Peder Bergebakken Sundt
851756b3af treewide: remove unreferenced patch files 2025-05-25 00:46:53 +02:00
nixpkgs-ci[bot]
92da411185 Merge staging-next into staging 2025-05-24 00:17:23 +00:00
Martin Weinelt
a64a02f6d6 buildPythonPackage: preserve the disabled effect after <pkg>.overrideAttrs (#376419) 2025-05-23 22:39:11 +02:00
Martin Weinelt
eda65094fb python313Packages.aiodns: 3.3.0 -> 3.4.0
https://github.com/saghul/aiodns/releases/tag/v3.4.0
2025-05-23 16:27:47 +02:00
Martin Weinelt
9ed0a391e0 cpython: drop leftover CVE-2025-0398 patch
Fixes: 090848175d
2025-05-23 16:27:21 +02:00
Martin Weinelt
033d93e793 python3: 3.12.10 -> 3.13.3
Updates the default Python version to 3.13 for the NixOS 25.11 release
cycle. We still keep recursing into python312Packages and
python313Packages.
2025-05-23 16:27:16 +02:00
nixpkgs-ci[bot]
93d5cbe07b Merge staging-next into staging 2025-05-23 06:06:33 +00:00
Guillermo Rodriguez
12b46122bc cpython: add enableDebug argument to enable "--with-pydebug" during build (#409943) 2025-05-23 03:18:56 +02:00
Martin Weinelt
567f0e57c4 buildPython*: pass check-related args whenever specified (#376060) 2025-05-23 03:12:06 +02:00
nixpkgs-ci[bot]
bb9e15a0e1 Merge staging-next into staging 2025-05-17 18:05:50 +00:00
Arne Keller
a3902d96f9 pypy: 7.3.17 -> 7.3.19 (#393847) 2025-05-17 19:31:42 +02:00
DavHau
b634edb1a4 python3Minimal: make it truly minimal
Make python3 minimal truly minimal by disabling some more dependencies.

This makes it easy to bootstrap python.

After this, the only remaining runtime deps for python3Minimal are:
- bash (for launching subprocesses with shell=True)
- libc
- libgcc
- libffi

All remaining deps seem to be fundamental and cannot be further reduced, except bash which could potentially be removed and replaced with `$SHELL` at runtime.

Done:
- add some more withXXX switches to the cpython package
- use new switches in python3Minimal to disable some deps
- set some other deps to null in python3Minimal
- Set `allowedReferences` to guarantee that the closure remains minimal in the future.
2025-05-13 01:02:39 +07:00
FliegendeWurst
233f899f64 pypy.tests: disable broken test 2025-05-09 08:53:22 +02:00
FliegendeWurst
2d23255ff5 pypy{27,310}: 7.3.17 -> 7.3.19, pypy311: init at 7.3.19 2025-05-09 08:53:22 +02:00
nixpkgs-ci[bot]
7b793f256a Merge master into staging-next 2025-05-08 18:05:13 +00:00
Martin Weinelt
eca03fc2f3 python314: 3.14.0a7 -> 3.14.0b1
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-1
2025-05-08 17:24:42 +02:00
nixpkgs-ci[bot]
a3b10492af Merge staging-next into staging 2025-05-05 12:07:01 +00:00
Vladimír Čunát
bf01260310 pypy: fix prebuild hash for aarch64-linux (#403361) 2025-05-05 10:49:34 +02:00