2212 Commits

Author SHA1 Message Date
Nicolas Benes
448d5637ed pythonDocs: 3.15.1 -> 3.15.2 2026-10-31 01:36:38 +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
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
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
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
figsoda
70fdef7c16 python3Packages.python.withPackages: respect package set overrides (#556255) 2026-10-20 00:26:18 +00: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
Yueh-Shun Li
85831189d6 buildPythonPackage: throw against overriding disabled via overridePythonAttrs
Add
meta.problems.buildPythonPackage-internal-disabled-overridePythonAttrs
when <pkg>.overridePythonAttrs taking deprecated argument disabled.

buildPythonPackage and buildPythonApplication
still takes argument disabled,
transformed with makeOverridablePythonPackages.

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-10-14 23:09:20 +08:00
Yueh-Shun Li
2ed0f15856 buildPythonPackage: convert disabled to unsupportedPython in origArgs
Transparently convert the { disabled = true; } to
meta.problems.unsupportedPython
and remove the `disabled` argument,
such that <pkg>.overridePythonAttrs can always
mitigate unsupportedPython by removing it from meta.problems

Co-authored-by: Eman Resu <ellakalle6@gmail.com>
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-10-14 22:53:53 +08:00
Yueh-Shun Li
57e4dc25c6 buildPythonPackage: makeOverridablePythonPackage: overrideWith: simplify micro-optimisation 2026-10-14 22:53:52 +08:00
K900
73df9e741b Merge remote-tracking branch 'origin/master' into staging-next 2026-10-14 15:35:44 +03: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
Yueh-Shun Li
20af433782 buildPythonPackage: prioritise meta.problems over argument disabled
When meta.problems is specified, either by calling buildPythonPackage
or by overriding with <pkg>.overridePythonAttrs,
prioritise the presence of meta.problems.unsupportedPython
over the argument disabled.
2026-10-13 23:51:01 +08:00
nixpkgs-ci[bot]
04f7e31a27 Merge master into staging-next 2026-10-13 12:15:32 +00:00
Matt Sturgeon
49316d62ac buildPythonPackage: remove deprecated stdenv argument compatibility layer (#570872) 2026-10-13 11:01:49 +00:00
Yueh-Shun Li
888ebaf057 buildPythonPackage: remove stdenv compatibility layer; guard w/ meta.problems
Remove overrideStdenvCompat from python-packages-base.nix

Add meta.problems.buildPythonPackage-internal-stdenv
when getting the stdenv argument
to make it an package evaluation error.

Add a test case in tests.overriding
(overridePythonAttrs-deprecated-arg-stdenv)
asserting that the problem appears when overriding with
<pkg>overridePythonAttrs with the deprecated stdenv argument.
2026-10-13 18:22:01 +08:00
Yueh-Shun Li
e26306bd97 buildPythonPackage: add comment to meta.problems.unsupportedPython 2026-10-13 18:18:10 +08:00
Nicolas Benes
3ea6ae8927 pythonDocs: 3.14.8 -> 3.15.0 2026-10-13 09:35:21 +02:00
whispers
f5898b2e40 Merge master into staging-next 2026-10-09 21:24:00 -04:00
Martin Weinelt
7b33299026 python315: 3.15.0rc2 -> 3.15.0
https://docs.python.org/release/3.15.0/whatsnew/changelog.html
2026-10-09 22:46:31 +02:00
Robert Schütz
a8383b6332 python3Packages.buildPythonPackage: default to __structuredAttrs = true 2026-10-08 18:49:48 +02:00
Robert Schütz
7e728a8fda python3Packages.pythonMetadataCheckHook: skip only version comparison for unstable version
This way we still compare the pname to the name in METADATA.
2026-10-08 18:49:38 +02:00
Robert Schütz
95fb018534 python3Packages.pythonMetadataCheckHook: rewrite comparison in Python 2026-10-08 18:49:38 +02:00
Robert Schütz
969a4a0379 python3Packages.pythonMetadataCheckHook: improve error message for mismatched pname 2026-10-08 18:49:38 +02:00
figsoda
c98a3ab455 python3.tests.test-packageOverrides: also check python.pkgs.python 2026-10-05 21:29:06 -04:00
figsoda
e72cce0f39 python3.tests.test-overrideScope: also test ps.python.pkgs 2026-10-05 21:23:52 -04:00
figsoda
7b119d1204 python3.tests.test-overrideScope: reenable 2026-10-05 21:23:52 -04:00
figsoda
c7bf11f8a9 python3Packages.python.withPackages: respect package set overrides 2026-10-05 21:21:47 -04:00
nixpkgs-ci[bot]
be60babeb7 Merge staging-next into staging 2026-10-05 18:12:55 +00:00
Yueh-Shun Li
bfe6d2cef1 buildPythonPackage: mark unsupported interpreter with meta.problems.unsupportedPython (#540720) 2026-10-05 13:32:24 +00:00
nixpkgs-ci[bot]
4347e1c017 Merge staging-next into staging 2026-10-04 01:06:16 +00: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
Martin Weinelt
c23f66a534 python313: 3.13.15 -> 3.13.16; python314: 3.14.7 -> 3.14.8 (#569174) 2026-10-03 10:21:07 +00:00
Martin Weinelt
b770a38574 python314: 3.14.7 -> 3.14.8
https://docs.python.org/release/3.14.8/whatsnew/changelog.html

Fixes: CVE-2026-19445, CVE-2026-15806
2026-10-01 22:43:08 +02:00
Martin Weinelt
f742cf461e python313: 3.13.15 -> 3.13.16
https://docs.python.org/release/3.13.16/whatsnew/changelog.html

Fixes: CVE-2026-82049, CVE-2026-19445, CVE-2026-15806
2026-10-01 21:23:40 +02:00
Martin Weinelt
85704e963d python312: 3.12.14 -> 3.12.15
https://docs.python.org/release/3.12.15/whatsnew/changelog.html

Fixes: CVE-2026-82049, CVE-2026-19445, CVE-2026-15806
2026-10-01 20:25:38 +02:00
Martin Weinelt
bdd8a23501 python311: 3.11.16 -> 3.11.17
https://docs.python.org/release/3.11.17/whatsnew/changelog.html

Fixes: CVE 2026-82049, CVE-2026-19445, CVE-2026-15806
2026-10-01 20:24:20 +02:00
Nicolas Benes
ac3e9e72bd pythonDocs: 3.14.7 -> 3.14.8 2026-10-01 12:02:06 +02:00
Yueh-Shun Li
8d49470421 buildPythonPackage: make passthru.disabled reference finalAttrs ? meta.problems.unsupportedPython 2026-09-29 23:17:02 +08:00
nixpkgs-ci[bot]
db15d87df8 Merge master into staging-next 2026-09-08 20:33:36 +00:00