Commit Graph

2122 Commits

Author SHA1 Message Date
nixpkgs-ci[bot]
b6a05ebc0d Merge staging-next into staging 2026-06-24 18:37:36 +00:00
Martin Weinelt
4361d1c65b python315: 3.15.0b2 -> 3.15.0b3
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-beta-3
2026-06-24 15:00:18 +02:00
nixpkgs-ci[bot]
09352943f8 Merge staging-next into staging 2026-06-14 00:49:40 +00:00
Arne Keller
9e6dbeec61 pypy3: fix mainProgram attribute for nix run (#530787) 2026-06-13 21:37:34 +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
XlNTARO
47e5bac99a pypy3: fix mainProgram attribute for nix run 2026-06-11 19:50:12 +03:00
Martin Weinelt
584d8c9e35 python313: 3.13.13 -> 3.13.14
https://docs.python.org/release/3.13.13/whatsnew/changelog.html

Fixes: CVE-2026-4224, CVE-2026-3644, CVE-2026-2297
2026-06-11 17:53:51 +02:00
Martin Weinelt
2c67d1303c python314: 3.14.5 -> 3.14.6
https://docs.python.org/release/3.14.6/whatsnew/changelog.html
2026-06-11 17:53:22 +02:00
nixpkgs-ci[bot]
e3a2cd0596 Merge staging-next into staging 2026-06-11 13:19:31 +00:00
Emre Sahin
046a0c6211 python3.tests.condaExamplePackage: fix eval warning for buildInputs 2026-06-11 12:07:31 +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
Martin Weinelt
2f6fa7d7fb pythonDocs: init at 3.14, drop 3.10 (#526551) 2026-06-04 22:40:13 +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
nixpkgs-ci[bot]
13a9af854d Merge staging-next into staging 2026-06-03 00:55:16 +00: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
Martin Weinelt
b04a32132e python315: 3.15.0b1 -> 3.15.0b2
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-beta-2
2026-06-02 22:21:41 +02:00
Martin Weinelt
002ad5f042 python3Packages.buildPythonPackage: Don't copy input list when checking inputs (#519252) 2026-06-02 19:51:26 +00:00
Michael Daniels
61fdedcce5 Merge branch 'staging-next' into staging 2026-05-31 20:44:27 -04:00
Aliaksandr
574bf7de39 treewide: remove isPy27 and isPy2 flags 2026-05-31 15:15:50 +03:00
Aliaksandr
e6871d9800 python2: move cpython, mkPythonDerivation into resholve 2026-05-31 15:14:59 +03:00
Aliaksandr
2c87389c6f python2-packages: move into resholve 2026-05-31 15:14:58 +03:00
Martin Weinelt
6c1d92dac9 python3Minimal: exclude zstd on minimal
Evade eval errors during bootstrap.
2026-05-30 03:53:02 +02:00
Martin Weinelt
adb4fccdc7 python3: 3.13 -> 3.14
For 26.11 Python 3.14 will be the default Python release while 3.13 is
mostly provided for legacy compat.
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
adisbladis
54bea898fa python3Packages.buildPythonPackage: Don't copy input list when checking inputs 2026-05-21 15:08:32 +12:00
nixpkgs-ci[bot]
c4b9cbf9c2 Merge staging-next into staging 2026-05-19 13:06:53 +00:00
nixpkgs-ci[bot]
42e06c8075 Merge master into staging-next 2026-05-19 13:06:20 +00:00
adisbladis
887fe9af74 python3Packages.mkPythonEditablePackage: use structuredAttrs instead of passAsFile (#515851) 2026-05-19 12:46:27 +00:00
nixpkgs-ci[bot]
ac65a7e592 Merge staging-next into staging 2026-05-12 07:01:03 +00:00
nixpkgs-ci[bot]
1bd182852d Merge master into staging-next 2026-05-12 07:00:02 +00:00
Eman Resu
bc3ca125eb python/wrapper: use the python that's already added
requiredPythonModules always adds a python element.
2026-05-11 21:54:30 -04:00
Eman Resu
0f027769b2 buildPythonPackage: use nullable attr keys instead 2026-05-11 21:54:29 -04:00
Eman Resu
b57eb40ea7 buildPythonPackage: avoid validating python itself 2026-05-11 21:38:03 -04:00
Eman Resu
ce3dc05a4c buildPythonPackage: save a function call 2026-05-11 21:38:03 -04: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
K900
7a535c8c93 Merge remote-tracking branch 'origin/master' into staging-next 2026-05-08 09:27:15 +03: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
Stefan Frijters
8df0eff0a2 python3Packages.mkPythonEditablePackage: keep attrs structured 2026-05-03 23:52:17 +02:00
Stefan Frijters
d5c79513d9 python3Packages.mkPythonEditablePackage: use structuredAttrs instead of passAsFile 2026-05-02 13:38:54 +02:00
nixpkgs-ci[bot]
690b686828 Merge staging-next into staging 2026-04-30 00:37:57 +00:00
Matt Sturgeon
e712497e5d python2Packages.buildPytonPackage: restructure with lib.extendMkDerivation (#481423) 2026-04-29 21:51:33 +00:00
nixpkgs-ci[bot]
f8f95c9be8 Merge staging-next into staging 2026-04-28 12:37:48 +00:00
Arne Keller
37a293265f pypy: Fix changelog URL (#514182) 2026-04-28 09:55:53 +00:00
Anders Kaseorg
7088c26f44 pypy: Fix changelog URL
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
2026-04-27 13:30:14 -07:00
nixpkgs-ci[bot]
189c6bd465 Merge staging-next into staging 2026-04-27 06:55:30 +00:00
Yueh-Shun Li
82da9cf45c python3Packages.buildPythonPackage: ban pytestFlagsArray 2026-04-27 03:59:04 +08:00