Commit Graph

1971 Commits

Author SHA1 Message Date
Martin Weinelt
97f7f1b327 python315: 3.15.0a2 -> 3.15.0a3 (#471455) 2025-12-18 16:57:55 +00:00
Martin Weinelt
532bd8d5e1 buildPythonPackage: chore: remove unnecessary set update for passthru value (#471681) 2025-12-17 22:02:30 +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
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
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
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
Yueh-Shun Li
ff13d8ce45 makeOverridablePythonPackage: simplify implementation and make compatible with <pkg>.overrideAttrs (#267296) 2025-12-10 19:06:55 +00: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
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
3f07d3c307 python315: 3.15.0a1 -> 3.15.0a2
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-2
2025-11-23 17:20:25 +01:00
Martin Weinelt
9e9a4bea72 python: fix nixenv test (#457133) 2025-11-03 22:04:37 +00:00
qbisi
14fe4b34de python: fix nixenv test 2025-10-31 09:08:04 +08:00
nixpkgs-ci[bot]
c522ea5070 Merge staging-next into staging 2025-10-28 18:06:54 +00:00
Philip Taron
01898764b6 treewide: replace "yes" else "no" usages to lib.boolToYesNo (#442387) 2025-10-28 16:25:46 +00:00
K900
c42a763484 Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-27 21:12:17 +03:00
Philip Taron
4160763d74 various: lib usage improvements - prefer elem over any for list inclusion conditions (#455789) 2025-10-27 13:21:20 +00:00
K900
0eb2b2c825 Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-27 10:53:50 +03:00
h7x4
7720a6246f pypy: lib.mapAttrsToList -> lib.attrsNames 2025-10-26 15:33:34 +09:00
h7x4
92aa43a0df pypy3: lib.mapAttrsToList -> lib.attrsNames 2025-10-26 15:33:34 +09:00
h7x4
ff17d6952f pypy: lib.any -> lib.elem 2025-10-26 15:31:35 +09:00
K900
0b0c249f09 Merge remote-tracking branch 'origin/staging-next' into staging 2025-10-25 10:00:19 +03:00
sternenseemann
0443b98ab3 buildPython*: unconditionally add .override
To be able to splice, we can't fail to eval before returning an
attribute set. By checking for f ? override, we need to force f which
isn't always possible, whereas mirrorFunctionArgs serves as an
indirection which wraps the inner thunks in an attribute set that can
always be returned. Fortunately, there should be no case when f
evaluates successfully and does not have the override attribute, so we
can just remove the condition.

This fixes evaluation of buildPython* based packages in certain splicing
situations by being lazier. An example of this is
pkgsCross.ghcjs.buildPackages.nixpkgs-openjdk-updater on staging right
now (ff5098e).
2025-10-25 00:15:34 +02:00
Yueh-Shun Li
e05528c65f buildPython*: warn about deprecated argument stdenv
On Nixpkgs >= 26.05 (or precisely, oldest supported release >= 25.11),
warn about the use of buildPython*'s deprecated argument `stdenv`.

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2025-10-23 14:56:56 +08:00
Yueh-Shun Li
c4e3b67afb buildPython*: allow stdenv customization through <function>.override 2025-10-23 14:51:18 +08:00
nixpkgs-ci[bot]
882482ed0e Merge staging-next into staging 2025-10-22 19:50:01 +00:00
Yueh-Shun Li
7a4ad371b1 buildPython*: bring back buildPython*.override (#366593) 2025-10-22 19:20:10 +00:00
Yueh-Shun Li
cce0f3f300 buildPython*: bring back buildPython*.override
Fix `makeOverridablePythonPackage` in python-package-base.nix
and unshadow `buildPython*.override`.

This makes it possible to override the dependencies of buildPython*.
E.g., `buildPythonPackage.override { unzip = unzip-custom; }`
returns a derived version of `buildPythonPackage` with
the `unzip` package overridden with `unzip-custom`.
2025-10-23 03:08:33 +08:00
Aliaksandr
80f12557f5 treewide: replace "yes" else "no" usages to lib.boolToYesNo 2025-10-21 16:04:34 +03:00
Martin Weinelt
cf974c4169 python: fix venv creation (#442540) 2025-10-19 18:34:47 +00:00
nixpkgs-ci[bot]
a6b2560cff Merge staging-next into staging 2025-10-15 18:06:33 +00:00
nixpkgs-ci[bot]
003c57b969 Merge master into staging-next 2025-10-15 18:05:52 +00:00
Martin Weinelt
6785773052 python315: init add 3.15.0a1
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-1
2025-10-15 18:01:30 +02:00
Martin Weinelt
f8de5310fb python313: 3.13.8 -> 3.13.9
https://docs.python.org/release/3.13.9/whatsnew/changelog.html
2025-10-15 00:24:52 +02:00
Philip Taron
eda556d94b treewide: remove usages of obsolete pie hardening flag (#449771) 2025-10-10 15:17:28 -07:00
Martin Weinelt
537add7b3d python312: 3.12.11 -> 3.12.12 (#450493) 2025-10-10 11:33:23 +02:00
nixpkgs-ci[bot]
7e9e7583ef Merge master into staging-next 2025-10-10 00:16:30 +00:00
Martin Weinelt
236ccf8c35 python312: 3.12.11 -> 3.12.12
https://docs.python.org/release/3.12.12/whatsnew/changelog.html
2025-10-10 02:00:32 +02:00
Martin Weinelt
db94f71cf6 python310: 3.10.18 -> 3.10.19
https://docs.python.org/release/3.10.19/whatsnew/changelog.html
2025-10-10 00:47:32 +02:00
Martin Weinelt
e4bf3d7976 python311: 3.11.13 -> 3.11.14
https://docs.python.org/release/3.11.14/whatsnew/changelog.html
2025-10-10 00:46:51 +02:00
Luna Nova
e7fbed853b treewide: remove usages of obsolete pie hardening flag 2025-10-09 10:13:03 -07:00
nixpkgs-ci[bot]
bd43b58711 Merge master into staging-next 2025-10-08 00:16:11 +00:00