Commit Graph

2158 Commits

Author SHA1 Message Date
Martin Weinelt
7465728763 buildPython*: run runtime dependency check hook for wheels 2026-01-14 21:58:06 +01:00
Martin Weinelt
c06e838d65 python315: 3.15.0a3 -> 3.15.0a4
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-4
2026-01-14 01:38:58 +01:00
Ben Siraphob
c7e10647ea treewide: fix typos 2026-01-13 14:45:11 -05:00
Michael Daniels
5ed07317e9 treewide: change 'format = "other";' to 'pyproject = false;'
Entirely find-and-replace based.

A few usages that would cause rebuilds if changed remain.

This PR should have 0 rebuilds.
2026-01-12 17:50:37 -05:00
Robert Schütz
1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00
Martin Weinelt
8b9ad97235 buildPython*: support fixed-point arguments (#271387) 2026-01-04 20:51:07 +00:00
Matt Sturgeon
193be27bbf buildPython*: include package name in stdenv warning
Co-authored-by: Leona Maroni <dev@leona.is>
2026-01-04 21:21:50 +01:00
dmyTRUEk
2c7ad72241 mk-python-derivation: fix typo 2026-01-01 14:13:59 +02:00
Aleksana
a48f11c5bd python3Packages.setuptools-rust: fix python version inconsistency (#473299) 2025-12-23 03:27:20 +00:00
aleksana
a05b9af428 python3: expose all splices for use with hooks 2025-12-22 22:25:12 +08:00
K900
596f58fc1c Merge remote-tracking branch 'origin/master' into staging-next 2025-12-18 21:09:58 +03:00
Martin Weinelt
97f7f1b327 python315: 3.15.0a2 -> 3.15.0a3 (#471455) 2025-12-18 16:57:55 +00:00
Stefan Frijters
d89172980b wrapPythonPrograms: support structuredAttrs
$pythonPath can be an array - if we don't expand it we only get the first element.
2025-12-18 12:24:28 +01:00
Yueh-Shun Li
7e1f654883 buildPython*: format expressions 2025-12-18 17:55:00 +08:00
Yueh-Shun Li
0969c66247 buildPython*: support fixed-point arguments via lib.extendMkDerivation
Postpone formatting to minimize diff and to ease merging.
2025-12-18 17:55:00 +08:00
Yueh-Shun Li
fb9727a198 makeOverridablePythonPackage: allow buildPython* to take fixed-point arguments 2025-12-18 17:55:00 +08:00
K900
453752195a Merge remote-tracking branch 'origin/master' into staging-next 2025-12-18 09:57:58 +03:00
Martin Weinelt
532bd8d5e1 buildPythonPackage: chore: remove unnecessary set update for passthru value (#471681) 2025-12-17 22:02:30 +00:00
nixpkgs-ci[bot]
4fa909c6b1 Merge master into staging-next 2025-12-17 15:26:13 +00:00
Yueh-Shun Li
353eec600b buildPythonPackage: chore: remove unnecessary set update 2025-12-17 22:17:22 +08:00
Arne Keller
44b2026a4c pypy: remove explicit darwin minimum SDK (#471446) 2025-12-17 12:42:05 +00:00
nixpkgs-ci[bot]
7d328d38a6 Merge staging-next into staging 2025-12-17 00:18:04 +00:00
Philip Taron
5658916132 python2: fix paths for structuredAttrs (#470566) 2025-12-16 21:41:53 +00:00
Martin Weinelt
db88301a81 python315: 3.15.0a2 -> 3.15.0a3
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-3
2025-12-16 21:41:42 +01:00
Niklas Korz
b92751652e pypy: remove explicit darwin minimum SDK
PyPy sets an explicit minimum SDK version for darwin that is much older
than what we we default to on nixpkgs (currently 14.0).
Simply removing the explicit flag makes it use our default instead.

This fixes a build failure where PyPy tries to access APIs that are not
available in the macOS SDK it is targetting.
This is technically not relevant for upstream as this is an opt-in
warning which we have recently enabled by default (as error) on
nixpkgs, but they too should bump the minimum target to at least 10.15
from their current target of 10.13.
2025-12-16 21:13:05 +01:00
nixpkgs-ci[bot]
98b2b03bb4 Merge staging-next into staging 2025-12-15 12:10:12 +00:00
Ihar Hrachyshka
a269d900c4 treewide: remove remaining meta = with lib; 2025-12-14 15:16:00 -05:00
Stefan Frijters
b9195a7fb6 python2: fix paths for structuredAttrs
Without this, things like zlib are not found.
2025-12-14 00:53:58 +01:00
nixpkgs-ci[bot]
9d911c99bc Merge staging-next into staging 2025-12-12 12:08:28 +00:00
dotlambda
195e2bc55c python3Packages.setuptools-rust: fix cross build for all setuptools-rust based packages (#467817) 2025-12-11 06:25:13 +00:00
Matt Sturgeon
553a6c3d3a buildPython*: preserve overrideStdenvCompat on subsequent overrides
This is needed to support the deprecated method of overriding `stdenv`
via `overridePythonAttrs`.
2025-12-11 01:15:17 +00:00
Matt Sturgeon
32ecc2256b buildPython*: remove stdenv arg in overrideStdenvCompat
Avoid passing `stdenv` to the underlying function when it is already
handled in overrideStdenvCompat.
2025-12-11 01:07:55 +00:00
Matt Sturgeon
9d87f178ed buildPython*: switch overrideStdenvCompat to mirrorFunctionArgs
The underlying `mk-python-derivation.nix` functions do not have `stdenv`
in their functionArgs, so it was redundant to explicitly remove it.
2025-12-11 01:07:55 +00:00
Matt Sturgeon
37655d3b36 buildPython*: rename override param in makeOverridablePythonPackage
`fdrv` → `newArgs`; the parameter is not a derivation, so fdrv is
confusing.
2025-12-11 01:07:55 +00:00
nixpkgs-ci[bot]
795ce4c7c1 Merge staging-next into staging 2025-12-11 00:19:41 +00:00
Yueh-Shun Li
ff13d8ce45 makeOverridablePythonPackage: simplify implementation and make compatible with <pkg>.overrideAttrs (#267296) 2025-12-10 19:06:55 +00:00
Wolfgang Walther
46c0c0eae7 Merge branch 'staging-next' into staging 2025-12-10 18:42:31 +01:00
Ihar Hrachyshka
567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00
Yueh-Shun Li
ca6c090082 makeOverridablePythonPackage: take care of overrideAttrs
Make it possible to mix overridePythonAttrs and overrideAttrs, i.e.
((<pkg>.overrideAttrs (_: { foo = "a"; })).overridePythonAttrs (_: { })).foo now works

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-10 19:22:04 +08:00
Yueh-Shun Li
e8302431ef makeOverridablePythonPackage: simplify implementation
Attach overridePythonAttrs by attribute set update
instead of `stdenv.mkDerivation`'s `passthru`.

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-12-10 19:20:01 +08:00
DavHau
e656303867 python3Packages.setuptools-rust: fix cross build for all setuptools-rust based packages
Prior to this change all python packages using `setuptools-rust` were broken when cross compiled as they built binaries for the build platform instead of for the host platform.

The setuptoolsRustBuildHook hook would have to be included as a native build input instead of the `setuptools-rust` package, but practically wasn't used anywhere.

This change makes it so that `setuptoolsRustBuildHook` becomes unnecessary, and instead `setuptools-rust` propagates a setup-hook directly setting up the build environment, similar to how cmake does it when included via nativeBuildInputs.

This change fixes cross on all packages using `setuptools-rust` as a build-system.
2025-12-09 12:32:28 +07:00
nixpkgs-ci[bot]
06f61d8b32 Merge staging-next into staging 2025-12-07 00:20:08 +00:00
Audrey Dutcher
5f12790a4c python3: Fix cross compilation to FreeBSD
- autoreconf needs to be run if we patch configure.ac
- the patch lines need to be adjusted otherwise it applies wrong
2025-12-06 15:51:49 -07:00
Martin Weinelt
7b9787935a Revert "cpython: fix gh-142214 on 3.14.1"
This reverts commit 27dcfd3e04.

This was fixed in 3.14.2 and as such this patch application has become
obsolete.
2025-12-06 01:20:01 +01:00
Martin Weinelt
d7040cdaee Revert "cpython: fix gh-142218 on 3.13.10 and 3.14.1"
This reverts commit ae4f7fd1e9.

Fixed in 3.13.11 and 3.14.2 and as such obsoleted.
2025-12-06 01:20:00 +01:00
Martin Weinelt
9dde8c194a python314: 3.14.1 -> 3.14.2
https://docs.python.org/release/3.14.2/whatsnew/changelog.html
2025-12-06 01:20:00 +01:00
Martin Weinelt
c83a2227bb python313: 3.13.10 -> 3.13.11
https://docs.python.org/release/3.13.11/whatsnew/changelog.html
2025-12-06 00:03:25 +01:00
Martin Weinelt
27dcfd3e04 cpython: fix gh-142214 on 3.14.1
Fixes two regressions in dataclasses.
2025-12-05 16:24:33 +01:00
Martin Weinelt
ae4f7fd1e9 cpython: fix gh-142218 on 3.13.10 and 3.14.1
Fixes split table dictionary crash regression.
2025-12-05 02:40:35 +01:00
Martin Weinelt
a2ccc79edb python314: 3.14.0 -> 3.14.1
https://docs.python.org/release/3.14.1/whatsnew/changelog.html
2025-12-03 10:12:17 +01:00