summaryrefslogtreecommitdiff
path: root/pkgs/development/interpreters/python/cpython
AgeCommit message (Collapse)Author
2025-12-17Merge staging-next into stagingnixpkgs-ci[bot]
2025-12-16python2: fix paths for structuredAttrs (#470566)Philip Taron
2025-12-15Merge staging-next into stagingnixpkgs-ci[bot]
2025-12-14treewide: remove remaining `meta = with lib;`Ihar Hrachyshka
2025-12-14python2: fix paths for structuredAttrsStefan Frijters
Without this, things like zlib are not found.
2025-12-10Merge branch 'staging-next' into stagingWolfgang Walther
2025-12-10treewide: clean up 'meta = with' patternIhar Hrachyshka
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-07Merge staging-next into stagingnixpkgs-ci[bot]
2025-12-06python3: Fix cross compilation to FreeBSDAudrey Dutcher
- autoreconf needs to be run if we patch configure.ac - the patch lines need to be adjusted otherwise it applies wrong
2025-12-06Revert "cpython: fix gh-142214 on 3.14.1"Martin Weinelt
This reverts commit 27dcfd3e044aea0bed1fe234a88ebf5d0efeadc6. This was fixed in 3.14.2 and as such this patch application has become obsolete.
2025-12-06Revert "cpython: fix gh-142218 on 3.13.10 and 3.14.1"Martin Weinelt
This reverts commit ae4f7fd1e9478b043606132b87c22c13198eb037. Fixed in 3.13.11 and 3.14.2 and as such obsoleted.
2025-12-05cpython: fix gh-142214 on 3.14.1Martin Weinelt
Fixes two regressions in dataclasses.
2025-12-05cpython: fix gh-142218 on 3.13.10 and 3.14.1Martin Weinelt
Fixes split table dictionary crash regression.
2025-10-28Merge staging-next into stagingnixpkgs-ci[bot]
2025-10-21treewide: replace "yes" else "no" usages to lib.boolToYesNoAliaksandr
2025-10-15Merge staging-next into stagingnixpkgs-ci[bot]
2025-10-15Merge master into staging-nextnixpkgs-ci[bot]
2025-10-15python315: init add 3.15.0a1Martin Weinelt
https://docs.python.org/3.15/whatsnew/changelog.html#python-3-15-0-alpha-1
2025-10-09treewide: remove usages of obsolete pie hardening flagLuna Nova
2025-10-05Merge staging-next into stagingnixpkgs-ci[bot]
2025-10-05pythonInterpreters: Add passthru.pythonABITags (#445140)Martin Weinelt
2025-10-05Merge staging-next into stagingnixpkgs-ci[bot]
2025-10-04pkgs: remove optional builtins prefixes from prelude functionsNAHO
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-09-25python27: fix build with gcc15ghpzin
- 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-22pythonInterpreters: Add passthru.pythonABITagsadisbladis
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-08-30cpython: build with bluetooth support in default buildMartin Weinelt
Closes: #341001
2025-08-30cpython: remove x11supportMartin Weinelt
This is required for tkinter, which we now build standalone as tkinter in the python package set.
2025-08-29cpython: disable pie on aarch64-linux minimalMartin Weinelt
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-28cpython: enable pie (#437366)Martin Weinelt
2025-08-24cpython: enable pieMartin Weinelt
2025-08-14python313: 3.13.6 -> 3.13.7Martin Weinelt
https://docs.python.org/release/3.13.7/whatsnew/changelog.html
2025-08-13cpython: remove libxcrypt on 3.13 and newerMartin Weinelt
The 3.13 release dropped support for the crypt module, so this dependency could have been dropped much earlier. Drops the `withLibxcrypt` argument, because manging the default has become quite a bit more complicated.
2025-08-10python313: revert commit that locks ssl socketsMartin Weinelt
This breaks among other things the websockets package and is due to be reverted in 3.13.7.
2025-08-09python3Minimal: remove pkg-config dependencyDavHau
Removes the build time dependency on pkg-config if python3 is build with the `withMinimal` flag enabled This change is driven by the motivation to use python3 earlier in stdenv for hooks.
2025-08-09python3Minimal: refactor - add withMinimal flagDavHau
simplifies the interface of building cpython minimally
2025-08-03python3: fix build directory scrubbingEmily
2025-08-01rocksdb, s7, python3, flint, release-cross: mingw_w64_pthreads -> pthreadsRoss Smyth
2025-07-24treewide: run nixfmt 1.0.0Wolfgang Walther
2025-06-20separateDebugInfo: add symlinks to executable and source for debuginfod ↵Guillaume Girol
support (#394674)
2025-06-18Merge master into staging-nextnixpkgs-ci[bot]
2025-06-18python314: 3.14.0b2 -> 3.14.0b3Martin Weinelt
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-3
2025-06-14python: __structuredAttrs = trueGuillaume Girol
needed by separateDebugInfo = true
2025-06-09Merge remote-tracking branch 'origin/master' into staging-nextK900
2025-06-09python314: address CVE-2025-4517, CVE-2025-4330, CVE-2025-4138, ↵natsukium
CVE-2024-12718, CVE-2025-4435 https://mail.python.org/archives/list/security-announce@python.org/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/ https://www.cve.org/CVERecord?id=CVE-2025-4517 https://www.cve.org/CVERecord?id=CVE-2025-4330 https://www.cve.org/CVERecord?id=CVE-2025-4138 https://www.cve.org/CVERecord?id=CVE-2024-12718 https://www.cve.org/CVERecord?id=CVE-2025-4435
2025-05-31Merge remote-tracking branch 'origin/master' into staging-nextMartin Weinelt
2025-05-31python314: add zstd dependency (#409307)Kamil Monicz
2025-05-31Merge master into staging-nextnixpkgs-ci[bot]
2025-05-30python313: fix static for x86_64-linuxAlyssa Ross
Tries to build a shared library.
2025-05-25treewide: remove unreferenced patch filesPeder Bergebakken Sundt
2025-05-23python313Packages.aiodns: 3.3.0 -> 3.4.0Martin Weinelt
https://github.com/saghul/aiodns/releases/tag/v3.4.0