Commit Graph

591 Commits

Author SHA1 Message Date
nixpkgs-ci[bot]
b917021cf7 Merge master into staging-next 2026-11-22 00:16:06 +00:00
Martin Weinelt
d843e5b3e3 python3: add isFreeThreaded to the interpreter's passthru (#583986) 2026-11-21 21:15:01 +00:00
Martin Weinelt
87eece7dda python3: add withZlib flag (#582740) 2026-11-15 10:15:53 +00:00
whoomee
e8aadfeba3 python3: add withZlib flag
zlib is a dependency of pypaInstallHook and therefore required for
actually building most packages.
Offer a flag to allow enabling it independently of withMinimalDeps.
2026-11-15 11:02:53 +01:00
lillecarl
c43592e498 python3: add isFreeThreaded to the interpreter's passthru
A package that builds differently on free-threaded Python has no
attribute to ask. It must parse libPrefix or executable for the "t"
ABI flag. Expose the interpreter's own setting: true when CPython is
built with enableGIL = false, and false for every other interpreter.
The package set passes it on as an argument, like pythonAtLeast.

passthru is not part of the derivation, so nothing rebuilds.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-11-06 11:38:19 +01:00
nixpkgs-ci[bot]
c91a075a70 Merge master into staging-next 2026-10-31 18:06:03 +00:00
Nicolas Benes
448d5637ed pythonDocs: 3.15.1 -> 3.15.2 2026-10-31 01:36:38 +01:00
Martin Weinelt
f911d6929f python311: 3.11.17 -> 3.11.18
https://docs.python.org/release/3.11.18/whatsnew/changelog.html

Fixes: CVE-2026-114583, CVE-2026-115557
2026-10-28 13:09:09 +01:00
Martin Weinelt
240b38717c python312: 3.12.15 -> 3.12.16
https://docs.python.org/release/3.12.16/whatsnew/changelog.html

Fixes: CVE-2026-114583, CVE-2026-115557, CVE-2026-12345
2026-10-28 13:09:03 +01:00
Martin Weinelt
f0d8eff3cd python313: 3.13.17 -> 3.13.18
https://docs.python.org/release/3.13.18/whatsnew/changelog.html

Fixes: CVE-2026-114583, CVE-2026-115557, CVE-2026-12345
2026-10-28 13:08:11 +01:00
Martin Weinelt
6d4887a81c python315: 3.15.0 -> 3.15.2
https://docs.python.org/release/3.15.2/whatsnew/changelog.html

Fixes: CVE-2026-1114583, CVE-2026-115557
2026-10-28 13:07:50 +01:00
Martin Weinelt
a52abe1dc9 python314: 3.14.8 -> 3.14.10
https://docs.python.org/release/3.14.10/whatsnew/changelog.html

Fixes: CVE-2026-114583, CVE-2026-115557, CVE-2026-12345
2026-10-28 13:07:50 +01:00
Nicolas Benes
9a5f769ba0 pythonDocs: 3.15.0 -> 3.15.1 2026-10-22 08:26:41 +02:00
Martin Weinelt
c10517edf4 python316: init at 3.16.0a1
https://docs.python.org/3.16/whatsnew/changelog.html#python-3-16-0-alpha-1
2026-10-14 11:16:58 +02:00
Nicolas Benes
3ea6ae8927 pythonDocs: 3.14.8 -> 3.15.0 2026-10-13 09:35:21 +02:00
Martin Weinelt
fe5406997f python3: specify meta.identifiers.cpeParts (#569963) 2026-10-03 21:30:48 +00:00
whoomee
4087ebd4aa python3: specify meta.identifiers.cpeParts 2026-10-03 22:58:23 +02:00
Nicolas Benes
ac3e9e72bd pythonDocs: 3.14.7 -> 3.14.8 2026-10-01 12:02:06 +02:00
Nicolas Benes
5de6d42bcb pythonDocs: 3.14.6 -> 3.14.7 2026-09-08 21:07:06 +02:00
nixpkgs-ci[bot]
acebe565a8 Merge master into staging-next 2026-08-23 09:44:17 +00:00
Stefan Frijters
e25206301a python3.passthru.doc: enable strictDeps, structuredAttrs 2026-08-14 19:00:43 +02:00
Stefan Frijters
cc022802b4 python3: enable strictDeps 2026-08-12 20:34:32 +02:00
R. Ryantm
a8e87d90d5 pythonDocs.html.python314: 3.14.6 -> 3.14.7 2026-08-08 15:10:44 +00:00
Emily
1eaa3c57cb python3: drop x86_64-darwin mention in comment 2026-07-15 03:58:17 +01:00
nixpkgs-ci[bot]
09352943f8 Merge staging-next into staging 2026-06-14 00:49:40 +00:00
Nicolas Benes
f510bda3df pythonDocs: switch to stable URL, drop pdf-a4
The previous URL did not contain the patch version and therefore there
were hash changes to the fetched files. Switch to a more stable URL.
The pdf-a4 file format seems to be generated only for the .0 patch
release, so it is missing for later releases.
2026-06-13 16:52:56 +02:00
nixpkgs-ci[bot]
566982b70a Merge staging-next into staging 2026-06-06 12:29:09 +00:00
nixpkgs-ci[bot]
368e7de99b Merge staging-next into staging 2026-06-05 00:47:55 +00:00
Jonas Rembser
fa6a2e8f1f python3: include ABI debug suffix d in executable (fixes FT+debug)
When instantiating an environment with the Python interpreter built
with both free threading (aka. without GIL) and `pydebug`, the value
of `passthru.executable` doesn't match any installed file. This was
noticed when building CI pipelines that require the Python interpreter
built with both debug features and free threading.

The cause is that `executable` was built from `libPrefix`, which only
tracks the `t` suffix from `--without-gil` and not the `d` suffix from
`--with-pydebug`. `libPrefix` doubles as the stdlib install directory,
and cpython deliberately shares that directory between debug and
non-debug builds of a given version, so the `d` is intentionally
absent there.

This slipped through because cpython only ever installs a
`python$VERSION -> python$LDVERSION` symlink (e.g. `python3.13 ->
python3.13d`). For debug-only builds the old code happened to ask for
`python3.13`, which is that symlink, so it worked by accident. For
FT+debug, `libPrefix` is `python3.13t`, but cpython installs no such
file; only `python3.13` (symlink) and `python3.13td` (binary).

Fix: append `d` to `executable` (and to the `cp<ver>` wheel ABI tag in
`pythonABITags`) when `enableDebug` is true.

Reproducer for the problem as a bash script:

```bash
set -euo pipefail

nixpkgs="${1:-<nixpkgs>}" # Either custom path if provided, or just <nixpkgs>

read -r -d '' expr <<EOF || true
let
  pkgs = import ${nixpkgs} { };
  py = pkgs.python313FreeThreading.override {
    enableDebug = true;
    self = py;
    pythonAttr = "python313FreeThreading";
  };
in py
EOF

executable=$(nix-instantiate --eval --json --expr "($expr).executable" | tr -d '"')
echo "passthru.executable = ${executable}"

out=$(nix-build --no-out-link --expr "$expr")
echo "store path:           ${out}"

if [[ -e "${out}/bin/${executable}" ]]; then
  echo "result:               OK (binary exists)"
  exit 0
fi

echo "result:               FAIL (${out}/bin/${executable} not found)"
echo "actually installed:"
ls "${out}/bin/" | grep '^python3\.' | sed 's/^/  /'
exit 1
```
2026-06-03 13:22:42 +02:00
Nicolas Benes
cb40bc2538 pythonDocs: drop 3.10 2026-06-03 00:44:06 +02:00
Nicolas Benes
2f031afd37 pythonDocs: init at 3.14, add panicgh as maintainer 2026-06-03 00:40:09 +02:00
Michael Daniels
61fdedcce5 Merge branch 'staging-next' into staging 2026-05-31 20:44:27 -04:00
Aliaksandr
e6871d9800 python2: move cpython, mkPythonDerivation into resholve 2026-05-31 15:14:59 +03:00
Martin Weinelt
6c1d92dac9 python3Minimal: exclude zstd on minimal
Evade eval errors during bootstrap.
2026-05-30 03:53:02 +02:00
nixpkgs-ci[bot]
f50dc660d4 Merge staging-next into staging 2026-05-28 18:54:19 +00:00
Ethan Carter Edwards
0f11b5770b python3: set meta.donationPage
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-05-27 15:40:31 -07:00
Martin Weinelt
194e729c3a cpython: kill dead code 2026-05-10 17:05:43 +02:00
Martin Weinelt
04928a6180 python314: 3.14.4 -> 3.14.5
https://docs.python.org/release/3.14.5/whatsnew/changelog.html

Fixes: CVE 2026-3219
2026-05-10 17:02:06 +02:00
Martin Weinelt
de92bac908 python315: 3.15.0a7 -> 3.15.0b1
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-beta-1
2026-05-07 23:13:33 +02:00
Ihar Hrachyshka
b624ca79ab python: apply hacl patch unconditionally 2026-03-22 14:16:04 -04:00
Martin Weinelt
bbfd20b61d pkgsStatic.python314: fix build (#502058) 2026-03-22 13:11:33 +00:00
Ihar Hrachyshka
5e45722b67 pkgsStatic.python314: fix build 2026-03-21 19:12:33 -04:00
Lisanna Dettwyler
3887e60583 pythonDocs.html.python27: use https for sources
Signed-off-by: Lisanna Dettwyler <lisanna.dettwyler@gmail.com>
2026-03-21 12:31:04 -04:00
Doron Behar
20a0e1b210 python3: propagate overrides of spliced pythons
This is a more accurate resurrection of what was meant to be done in
6421482683
2026-03-13 12:56:21 +02:00
Doron Behar
825a7f002c python3: avoid a small rec near passthruFun 2026-03-09 16:04:41 +02:00
Martin Weinelt
b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00
Martin Weinelt
8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00
Martin Weinelt
77ca080475 python310: drop
Reaches end of life before NixOS 26.05 and therefore has to leave early.
2026-02-15 03:17:23 +01:00
Doron Behar
6421482683 python3: let lib.mkScopeWithSplicing do its job
Fixes #476822 and #480467 . By itself this change doesn't trigger many
rebuilds, but it is easier to justify it in conjunction with the
previous commit.

Co-Authored-By: Colin <colin@uninsane.org>
2026-02-09 12:38:08 +02:00
quantenzitrone
55280fa564 various: rename references from libX11 to libx11
this shouldn't create any rebuilds
2026-02-06 00:24:34 +01:00