2131 Commits
Author SHA1 Message Date
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 TaronandGitHub eda556d94b treewide: remove usages of obsolete pie hardening flag (#449771) 2025-10-10 15:17:28 -07:00
Martin WeineltandGitHub 537add7b3d python312: 3.12.11 -> 3.12.12 (#450493) 2025-10-10 11:33:23 +02:00
nixpkgs-ci[bot]andGitHub 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]andGitHub bd43b58711 Merge master into staging-next 2025-10-08 00:16:11 +00:00
dish eb590fd241 python313: 3.13.7 -> 3.13.8
https://docs.python.org/release/3.13.8/whatsnew/changelog.html#python-3-13-8
2025-10-07 11:39:21 -04:00
Martin Weinelt 6916fe5a40 python314: 3.14.0-rc3 -> 3.14.0
https://docs.python.org/release/3.14.0/whatsnew/changelog.html
2025-10-07 17:14:58 +02:00
Wolfgang Walther 5e1f5b623b Merge branch 'staging-next' into staging 2025-10-05 11:40:56 +02:00
nixpkgs-ci[bot]andGitHub a9361cb4df Merge staging-next into staging 2025-10-05 09:12:50 +00:00
Wolfgang Walther 91a8fee3aa treewide: remove redundant parentheses
Auto-fixed by nixf-diagnose.
2025-10-05 10:52:03 +02:00
Wolfgang Walther c283f32d29 treewide: remove unused with
Auto-fixed by nixf-diagnose.
2025-10-05 10:50:41 +02:00
Martin WeineltandGitHub dbeacf1b40 buildPythonPackage: Enable direct attribute overriding via overrideAttrs (the non-staging ones) (#376372) 2025-10-05 01:17:36 +00:00
Martin WeineltandGitHub dd8ce7bda9 pythonInterpreters: Add passthru.pythonABITags (#445140) 2025-10-05 01:17:18 +00:00
nixpkgs-ci[bot]andGitHub e23d356469 Merge staging-next into staging 2025-10-05 00:18:23 +00:00
NAHO c8d4dabc43 pkgs: remove optional builtins prefixes from prelude functions
Remove optional builtins prefixes from prelude functions by running:

    builtins=(
      abort
      baseNameOf
      break
      derivation
      derivationStrict
      dirOf
      false
      fetchGit
      fetchMercurial
      fetchTarball
      fetchTree
      fromTOML
      import
      isNull
      map
      null
      placeholder
      removeAttrs
      scopedImport
      throw
      toString
      true
    )

    fd \
      --type file \
      . \
      pkgs \
      --exec-batch sed --in-place --regexp-extended "
        s/\<builtins\.($(
          printf '%s\n' "${builtins[@]}" |
            paste --delimiter '|' --serial -
        ))\>/\1/g
      "

    nix fmt
2025-10-04 19:02:37 +02:00
qbisi f994b346a0 python: fix venv creation 2025-10-03 12:33:34 +08:00
AleksanaandGitHub 6a8beb94ca python27: fix build with gcc15 (#446055) 2025-09-29 11:41:39 +08:00
Yueh-Shun Li bc122a602a python3Packages.buildPythonPackage: remove ineffective outputs cleanAttrs 2025-09-29 01:55:06 +08:00
Yueh-Shun Li 42ba377ba8 python3Packages.buildPythonPackage: make passthru.{dependencies,build-system} overridable 2025-09-29 01:55:06 +08:00
Yueh-Shun Li 67d2a84468 python3Packages.buildPythonPackage: pass passthru.dependencies empty or not 2025-09-29 01:55:05 +08:00
Yueh-Shun Li e2f75c6f5e python3Packages.buildPythonPackage: use pythonRelaxDepsHook iff related attributes non-empty 2025-09-29 01:55:05 +08:00
Yueh-Shun Li e25f3c9103 python3Packages.buildPythonPackage: make src overridable 2025-09-29 01:55:04 +08:00
Yueh-Shun Li b02dda8ea8 python3Packages.buildPythonPackage: make passthru.pyproject overridable 2025-09-29 01:55:04 +08:00
Yueh-Shun Li 0aebd262f1 python3Packages.buildPythonPackage: add internal helper getFinalPassthru
Add getFinalPassthru, an internal helper function that
produces informative error message
when an atttribute is not found in `finalAttrs.passthru`.
2025-09-29 01:55:02 +08:00
SandroandGitHub bc22ff6f69 python2: 2.7.18.8 -> 2.7.18.12 (#442970) 2025-09-27 02:38:56 +02:00
ghpzin b95b6d641e python27: fix build with gcc15
- add " -std=gnu17" to `env.NIX_CFLAGS_COMPILE`

Fixes build failure with gcc15:
```
In file included from Include/Python-ast.h:3,
                 from Python/bltinmodule.c:4:
Include/asdl.h:9:15: error: cannot use keyword 'false' as enumeration constant
    9 | typedef enum {false, true} bool;
      |               ^~~~~
Include/asdl.h:9:15: note: 'false' is a keyword with '-std=c23' onwards
Include/asdl.h:9:28: error: expected ';', identifier or '(' before 'bool'
    9 | typedef enum {false, true} bool;
      |                            ^~~~
Include/asdl.h:9:28: warning: useless type name in empty declaration
In file included from Include/Python-ast.h:3,
                 from Python/compile.c:26:
Include/asdl.h:9:15: error: cannot use keyword 'false' as enumeration constant
    9 | typedef enum {false, true} bool;
      |               ^~~~~
Include/asdl.h:9:15: note: 'false' is a keyword with '-std=c23' onwards
Include/asdl.h:9:28: error: expected ';', identifier or '(' before 'bool'
    9 | typedef enum {false, true} bool;
      |                            ^~~~
```
2025-09-25 18:03:25 +03:00
adisbladis 3e6a5988c7 pythonInterpreters: Add passthru.pythonABITags
As documented in https://packaging.python.org/en/latest/specifications/platform-compatibility-tags/#abi-tag.

This is useful to check whether a wheel is compatible with a certain interpreter. [Pyproject.nix](https://github.com/pyproject-nix/pyproject.nix) has [functions to perform wheel compatibility checking](https://pyproject-nix.github.io/pyproject.nix/lib/pypa.html#function-library-lib.pypa.isWheelFileCompatible) against a Python interpreter, and has computed interpreter ABI tags itself.
The recent addition of free threading (`python313FreeThreading`) complicates this by not being introspectable:
A GIL Python (non free-threaded) has an ABI tag `cp313` while the free-threaded Python has `cp313t`, but the package doesn't communicate whether `enableGIL` is true or false, leaving no way to compute the tag.
The same goes for if debugging support was added to the derivation: A `d` suffix would need to be added.

Additionally ABI tags has no defined format and can really only be accurately computed by having insight into how the ABI tags are used by a specific interpreter, meaning that the only correct place to compute ABI tags is within the context of a particular Python derivation.

While this has no immediate use within nixpkgs it could be used as a basis to provide compatibility assertions regarding wheel compat at eval time.
2025-09-22 16:36:36 +12:00
SandroandGitHub c503be9946 pypy3: 7.3.19 -> 7.3.20 (#443765) 2025-09-19 20:58:59 +00:00
Martin Weinelt 2444890a3d python314: 3.14.0rc2 -> 3.14.0rc3
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0rc3
2025-09-18 14:34:55 +02:00
Sandro Jäckel 8cb36f5d88 pypy3: 7.3.19 -> 7.3.20
This fixes https://github.com/pypy/pypy/issues/5247 which should fix a
failing test in numpy https://github.com/numpy/numpy/issues/28469
2025-09-17 16:46:37 +02:00
Sandro Jäckel 7b2776c904 pypy: create and install _sysconfigdata__*.py like _sysconfigdata__linux_x86_64-linux-gnu.py 2025-09-16 13:13:01 +02:00
Sandro Jäckel cee6df3f9d pypy: fix optimizationLevel 1 erroring 2025-09-16 13:12:40 +02:00
qbisiandSandro Jäckel 743ae5d20c pypy: fix installPhase 2025-09-16 00:38:54 +02:00
Sandro Jäckel c71ffb21a9 pypy: fix eval 2025-09-16 00:38:53 +02:00
Sandro Jäckel 963a04e217 python2: 2.7.18.8 -> 2.7.18.12 2025-09-14 20:03:29 +02:00
Sandro Jäckel 6c77e93a06 pypy: put NIX_CFLAGS_COMPILE under env to fix withCFlags 2025-09-14 19:39:46 +02:00
SandroandGitHub 5dda9c5637 python: Allow users to set nativeInstallCheckInputs and installCheckInputs (#439663) 2025-09-10 17:51:12 +02:00
Ross Smyth 4241178a62 python: Allow users to set nativeInstallCheckInputs and installCheckInputs
to make consistent with the rest of nixpkgs
2025-09-02 14:00:28 -04:00
Martin Weinelt 251d713d0c cpython: build with bluetooth support in default build
Closes: #341001
2025-08-30 14:48:04 +02:00
Martin Weinelt bba34e2f19 cpython: remove x11support
This is required for tkinter, which we now build standalone as tkinter
in the python package set.
2025-08-30 14:28:10 +02:00
Martin Weinelt 168959b55b cpython: disable pie on aarch64-linux minimal
The intermediate pythonMinimal build that uses the glibc from bootstrap
files cannot currently be built with PIE, because the Scrt.o startup
script is missing in there.
2025-08-29 15:38:31 +02:00
Martin WeineltandGitHub 996d406da0 cpython: enable pie (#437366) 2025-08-28 23:55:16 +02:00
Martin Weinelt 38ba6fb329 cpython: enable pie 2025-08-24 00:02:49 +02:00
nixpkgs-ci[bot]andGitHub 3d5a013c05 Merge staging-next into staging 2025-08-22 06:06:42 +00:00
nixpkgs-ci[bot]andGitHub 597354df74 Merge master into staging-next 2025-08-22 06:06:05 +00:00