Commit Graph

2252 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
nixpkgs-ci[bot]
fed163597f Merge staging-next into staging 2026-11-15 12:07:47 +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
whispers
b7fcde3397 python316: fix typo referring to python315 packages 2026-11-14 20:59:45 -05: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
Michael Daniels
42dd9a651c Merge branch 'staging-next' into staging 2026-10-28 21:15:01 -04:00
Yueh-Shun Li
1567cb60d9 buildPythonPackage: handle checkPhase -> installCheckPhase with a dynamic nulling attribute
Avoid unnecessary set merging.
2026-10-28 21:14:59 -04:00
Yueh-Shun Li
bde40a4795 buildPythonPackage: move enabledTest* assertions to meta.problems
And expand to cover finalAttrs.

Co-authored-by: Eman Resu <elevenaka11@gmail.com>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-10-28 21:14:58 -04:00
Yueh-Shun Li
7701b1b6f0 buildPythonPackages: extend pytestFlagsArray deprecation error to overrideAttrs
With the help of `meta.problems`.

Add position only when pytestFlagsArray are also non-empty
in buildPythonPackage/overridePythonAttrs arguments.
2026-10-28 21:14:58 -04:00
Michael Daniels
d455801e34 buildPythonPackage: mark unittestFlagsArray deprecation with meta.problems
Mark existing unittestFlagsArray in args with
`meta.problems.buildPythonPackage-deprecated-unittestFlagsArray`.

Drop the improvised `deprecatedFlagNotEmpty`.
2026-10-28 21:14:58 -04:00
Yueh-Shun Li
450baf3955 buildPythonPackage: mark pytestFlagsArray deprecation with meta.problems
Mark existing pytestFlagsArray in args with
`meta.problems.buildPythonPackage-deprecated-pytestFlagsArray`.

Drop the improvised `deprecatedFlagNotEmpty`.
2026-10-28 21:14:57 -04:00
Yueh-Shun Li
f21f9c1f45 buildPythonPackage: prefix internal problem messages with finalAttrs.name
Change meta.problems.buildPythonPacakge-internal-* prefix from
`buildPythonPackage: ` to `${finalAttrs.name}: `
The latter is easier to locate,
and the problem name already shows the former.
2026-10-28 21:14:57 -04:00
Yueh-Shun Li
9853e1c35e buildPythonPackage: fix pytestFlagsArray error message with null position 2026-10-28 21:14:57 -04: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
Sandro
1a8b2098ae treewide: fix python makeWrapperArgs with __structuredAttrs (#575801) 2026-10-28 00:46:46 +00:00
Matt Sturgeon
b80ce62850 buildPythonPackage: move assertions to meta.problems to optimise and expand coverage (#576379) 2026-10-27 20:50:09 +00:00
Yueh-Shun Li
d11b0ac1c4 buildPythonPackage: handle checkPhase -> installCheckPhase with a dynamic nulling attribute
Avoid unnecessary set merging.
2026-10-27 19:04:16 +08:00
Yueh-Shun Li
3383efb570 buildPythonPackage: move enabledTest* assertions to meta.problems
And expand to cover finalAttrs.

Co-authored-by: Eman Resu <elevenaka11@gmail.com>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-10-27 19:04:15 +08:00
Yueh-Shun Li
91c11834a8 buildPythonPackages: extend pytestFlagsArray deprecation error to overrideAttrs
With the help of `meta.problems`.

Add position only when pytestFlagsArray are also non-empty
in buildPythonPackage/overridePythonAttrs arguments.
2026-10-27 19:04:15 +08:00
Yueh-Shun Li
ae525ed194 buildPythonPackage: mark pytestFlagsArray deprecation with meta.problems
Mark existing pytestFlagsArray in args with
`meta.problems.buildPythonPackage-deprecated-pytestFlagsArray`.

Drop the improvised `deprecatedFlagNotEmpty`.
2026-10-27 19:04:07 +08:00
Vladimír Čunát
a3d6b928e6 python313: 3.13.16 -> 3.13.17 (#577702) 2026-10-27 07:49:14 +00:00
Rine Amakawa
6b01148e2e treewide: fix python makeWrapperArgs with __structuredAttrs
buildPythonPackage and buildPythonApplication now default to
__structuredAttrs = true, so makeWrapperArgs reaches wrapPythonPrograms
as a real bash array. Elements are no longer word-split or
shell-expanded, which breaks three common patterns:

- several arguments packed into one string, such as
  "--prefix PATH : ${...}", which makeWrapper rejects with
  "makeWrapper doesn't understand the arg ..."
- "\${gappsWrapperArgs[@]}" or "\${qtWrapperArgs[@]}" as list
  elements, which also fail the build
- build-time shell variables ($out, $PYTHONPATH, $GI_TYPELIB_PATH, ...)
  and shell quoting inside elements. These build fine but end up as
  literal strings in the wrapper, e.g. beets got
  export GI_TYPELIB_PATH='$GI_TYPELIB_PATH', and gam's --run lines
  became single-quoted commands that abort the wrapper.

Split packed strings into one element per argument, append the
gapps/qt wrapper args in preFixup, use placeholder "out" instead of
$out, move other build-time variables into preFixup, and drop the
now-literal quotes.

Also fix the makeWrapperArgs example in the python propagated-inputs
warning.

Assisted-by: Claude Code (Claude Opus 5.5)
2026-10-27 14:36:08 +09:00
Vladimír Čunát
0488eb972e python313: 3.13.16 -> 3.13.17
Looks trivial, single change, for security:
https://docs.python.org/release/3.13.17/whatsnew/changelog.html
Tested building python313 on staging-next-26.05
(x86_64-linux; there it rebuilds stdenvs)
2026-10-23 09:55:09 +02:00
nixpkgs-ci[bot]
c1dd3c2b28 Merge staging-next into staging 2026-10-22 12:14:41 +00:00
Nicolas Benes
9a5f769ba0 pythonDocs: 3.15.0 -> 3.15.1 2026-10-22 08:26:41 +02:00
Yueh-Shun Li
3802bc4972 buildPythonPackage: prefix internal problem messages with finalAttrs.name
Change meta.problems.buildPythonPacakge-internal-* prefix from
`buildPythonPackage: ` to `${finalAttrs.name}: `
The latter is easier to locate,
and the problem name already shows the former.
2026-10-21 19:19:03 +08:00
Yueh-Shun Li
be9681fd49 buildPythonPackage: fix pytestFlagsArray error message with null position 2026-10-21 19:18:58 +08:00
nixpkgs-ci[bot]
9a1a2e8185 Merge staging-next into staging 2026-10-21 00:22:55 +00:00
Adam C. Stephens
1de6b6e967 python3Packages.sphinxHook: prevent sphinxBuilders duplication (#576194) 2026-10-20 18:15:56 +00:00
Anthony Roussel
522210ad75 stestrCheckHook: support __structuredAttrs in disabledTestsRegex
Handle disabledTestsRegex with concatTo,
as it is a Bash array under __structuredAttrs
and `read -ra` only picked up its first element.
2026-10-20 18:32:50 +07:00
Anthony Roussel
d8ac67d222 stestrCheckHook: add stestrFlags 2026-10-20 17:30:35 +07:00
nixpkgs-ci[bot]
66d9840c6d Merge staging-next into staging 2026-10-20 06:15:27 +00:00
whispers
561cf47fc2 python3Packages.sphinxHook: prevent sphinxBuilders duplication
see https://github.com/NixOS/nixpkgs/pull/573479#discussion_r4301285198

Co-authored-by: "Adam C. Stephens" <adam@valkor.net>
2026-10-19 21:41:51 -04:00
figsoda
70fdef7c16 python3Packages.python.withPackages: respect package set overrides (#556255) 2026-10-20 00:26:18 +00:00
Martin Weinelt
74ab05778c python3.pkgs.pythonRuntimeDepsCheckHook: use per-call prerelease policy (#576094) 2026-10-19 22:00:52 +00:00
Damian Shaw
c69fc77d58 python3.pkgs.pythonRuntimeDepsCheckHook: use per-call prerelease policy 2026-10-19 15:24:26 -04:00
Eman Resu
ab5bb3a445 Revert "stdenv: run pre/post hooks automatically" 2026-10-18 13:50:30 -04:00
Dmitry Bogatov
5f9cef6c2c treewide: update code that explicitly disables pre/post hooks 2026-10-18 06:00:00 -04:00
Stefan Frijters
7bd975651f python3Packages.buildPythonPackage: warn on usage of deprecated unittestFlagsArray 2026-10-17 15:20:53 +02:00
K900
952ef22f11 Merge remote-tracking branch 'origin/staging-next' into staging 2026-10-15 12:43:09 +03:00
nixpkgs-ci[bot]
bdf2d07fa2 Merge master into staging-next 2026-10-15 06:15:44 +00:00
Eman Resu
1e7da2489c buildPythonPackage: fix <pkg>.overridePythonAttrs correctness regarding meta.problems.unsupportedPython (#570621) 2026-10-15 00:24:03 +00:00