2131 Commits
Author SHA1 Message Date
github-actions[bot]andGitHub 192fd67cc3 Merge master into staging-next 2024-10-03 18:04:30 +00:00
Martin Weinelt 62939616bc python313: 3.13.0rc2 -> 3.13.0rc3
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0rc3
2024-10-02 02:05:13 +02:00
github-actions[bot]andGitHub 27e693e46c Merge master into staging-next 2024-09-30 18:04:40 +00:00
Martin Weinelt a2ed02c4c2 cpython: add python team as maintainers 2024-09-30 19:41:04 +02:00
Artturin f0e657f3b1 Merge branch 'master' into staging-next 2024-09-25 06:05:01 +03:00
Artturin e0464e4788 treewide: replace stdenv.is with stdenv.hostPlatform.is
In preparation for the deprecation of `stdenv.isX`.

These shorthands are not conducive to cross-compilation because they
hide the platforms.

Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way

One example of why this is bad and especially affects compiler packages
https://www.github.com/NixOS/nixpkgs/pull/343059

There are too many files to go through manually but a treewide should
get users thinking when they see a `hostPlatform.isX` in a place where it
doesn't make sense.

```
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is"
fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is"
fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is"
```
2024-09-25 00:04:37 +03:00
OTABI TomoyaandGitHub fff13abe46 mk-python-derivation: don't expose check args when doCheck = false (#327264) 2024-09-15 17:09:15 +09:00
github-actions[bot]andGitHub 2e6560786a Merge staging-next into staging 2024-09-14 12:05:07 +00:00
Alyssa Ross 9316c5f8e8 update-python-libraries: enable nix-command consistently
This was already done for nix eval in _get_attr_value, but not in
other places.
2024-09-14 13:41:25 +02:00
github-actions[bot]andGitHub 76f4ef688d Merge staging-next into staging 2024-09-12 06:05:16 +00:00
K900 4e803e9656 Merge remote-tracking branch 'origin/staging-next' into staging 2024-09-12 07:00:07 +03:00
Martin WeineltandGitHub d4df896127 python39: 3.9.19 -> 3.9.20; python310: 3.10.14 -> 3.10.15; python313: 3.13.0rc1 -> 3.13.0rc2 (#340330) 2024-09-12 04:27:49 +02:00
adisbladisandGitHub 3fd64819c1 python3Packages.mkPythonEditablePackage: init (#339228) 2024-09-12 09:35:13 +12:00
Alyssa Ross b2f01b8861 python3: get the triple from the build system
We don't need the sysconfigdata name at eval time, so trying to
reimplement platform_triplet.c in Nix is unnecessarily painful
compared to just getting it from the build system after the fact.
2024-09-10 17:32:02 +02:00
adisbladis de1fdc9fe0 python3Packages.mkPythonEditablePackage: init 2024-09-08 17:13:21 +12:00
OTABI TomoyaandGitHub 4ebf78a90d python312: 3.12.5 -> 3.12.6; python311: 3.11.9 -> 3.11.10 (#340252) 2024-09-08 09:22:26 +09:00
Martin Weinelt 6868416e1a python313: 3.13.0rc1 -> 3.13.0rc2
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-release-candidate-2
2024-09-07 17:41:41 +02:00
Martin Weinelt 53a9c0f5a8 python310: 3.10.14 -> 3.10.15
https://docs.python.org/release/3.10.15/whatsnew/changelog.html
2024-09-07 17:40:41 +02:00
Martin Weinelt f60667a875 python39: 3.9.19 -> 3.9.20
https://docs.python.org/release/3.9.20/whatsnew/changelog.html
2024-09-07 17:39:54 +02:00
Martin Weinelt a161af2daa python311: 3.11.9 -> 3.11.10
https://docs.python.org/release/3.11.10/whatsnew/changelog.html
2024-09-07 06:06:06 +02:00
Martin Weinelt 9550eb8922 python312: 3.12.5 -> 3.12.6
https://docs.python.org/release/3.12.6/whatsnew/changelog.html
2024-09-07 06:03:19 +02:00
Yueh-Shun Li 758056dac7 treewide: handle postPhases __structuredAttrs-agnostically
Always specify the postPhases attribute as a list instead of a string.

Append elements to the postPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
2024-09-03 05:56:17 +08:00
Yueh-Shun Li 054c5f0e10 treewide: handle preDistPhases __structuredAttrs-agnostically
Always specify the preDistPhases attribute as a list instead of a string.

Append elements to the preDistPhases Bash variable using appendToVar
instead of string or Bash array concatenation.

Handle element insertion before a specific element using string
substitution as before, but handle both structured and unstructured
attributes.
2024-09-03 05:33:59 +08:00
Yueh-Shun Li 385d523a8e treewide: handle preInstallPhases __structuredAttrs-agnostically
Always specify the preInstallPhases attribute as a list instead of a
string.

Append elements to the preInstallPhases Bash variable using appendToVar
instead of string or Bash array concatenation.
2024-09-03 05:33:59 +08:00
github-actions[bot]andGitHub d8c78f272c Merge staging-next into staging 2024-08-30 18:04:32 +00:00
github-actions[bot]andGitHub b857d97eec Merge master into staging-next 2024-08-30 18:04:02 +00:00
OTABI TomoyaandGitHub afbde71a11 python313FreeThreading: fix build (#337791) 2024-08-31 01:07:18 +09:00
github-actions[bot]andGitHub 4544f25eb8 Merge staging-next into staging 2024-08-30 06:04:59 +00:00
github-actions[bot]andGitHub b9ec6f58ab Merge master into staging-next 2024-08-30 06:04:29 +00:00
adisbladis 8cd58c7e14 python3Packages.mkPythonMetaPackage: init
This function exists create a meta package containing [metadata files](https://packaging.python.org/en/latest/specifications/recording-installed-packages/) to satisfy a dependency on a package, without it actually having been installed into the environment.
2024-08-30 00:24:31 +12:00
Martin Weinelt 0ea153ce17 python313FreeThreading: fix build
The build uses a `t` suffix on the lib prefix.
2024-08-28 01:15:37 +02:00
OTABI TomoyaandGitHub 7ccd711f35 python{39,310,311,312,313}: Allow using cc to resolve dynamic libraries (#328943) 2024-08-27 21:45:22 +09:00
K900 5c68540f8b Merge remote-tracking branch 'origin/staging-next' into staging 2024-08-22 13:20:38 +03:00
Alyssa Ross 007088359e python3: break infinite recursion
Checking if bluez is a derivation requires evaluating whether an
emulator is available (in the case that gobject-introspection is
available), which when cross compiling requires evaluating qemu, which
requires evaluating libxml2, which requires evaluating Python.

The recursion break happens in the Python expression because it's the
thing behaving unusually, by forcing evaluation of all of its
arguments, even ones that are optional and unused.

Fixes: 8b3a4a617e ("bluez: fix when gobject-introspection unsupported")
2024-08-21 18:45:30 +02:00
Tobias Mayer f4917d2893 pkgsStatic.python312: fix build 2024-08-20 10:48:39 +02:00
OTABI TomoyaandGitHub a37d8f5310 Merge pull request #333228 from mweinelt/python-3.12.5
python312: 3.12.4 -> 3.12.5
2024-08-17 22:25:02 +09:00
OTABI TomoyaandGitHub 936b2614d4 Merge pull request #334255 from rhoriguchi/pythonPackages.isPy312
pythonPackages: add missing isPy312
2024-08-14 23:07:09 +09:00
Ryan Horiguchi 0961e3294f pythonPackages: add missing isPy312 2024-08-13 01:08:32 +02:00
github-actions[bot]andGitHub 45080a9559 Merge master into staging-next 2024-08-10 18:01:08 +00:00
Martin Weinelt 8878d8afcd python312: 3.12.4 -> 3.12.5
https://docs.python.org/release/3.12.5/whatsnew/changelog.html
2024-08-08 15:36:12 +02:00
Martin Weinelt 0b0dd33e0a python312Packages.setuptoolsCheckHook: remove
The hook relied on the `test` command passed to `setup.py`, which has
long been deprecated and finally removed in setuptools 72.0.
2024-08-06 18:18:40 +02:00
Martin Weinelt 430a009282 python313: 3.13.0b4 -> 3.13.0rc1
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0rc1
2024-08-01 13:52:30 +02:00
natsukium 2e2f18813c mk-python-derivation: don't expose check args when doCheck = false
This change prevents rebuilds if we change check flags when
doCheck = false. It's useful, for example, when tests are separated in
`passthru.tests`.
2024-07-27 11:26:55 +09:00
Martin Weinelt 93f4195fe0 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/applications/graphics/seamly2d/default.nix
2024-07-26 18:05:04 +02:00
Sigmanificient 6dd44107ac treewide: remove unused lib (and other) arguments 2024-07-26 11:18:09 +02:00
K900 1410c766c8 Merge remote-tracking branch 'origin/master' into staging-next 2024-07-26 08:41:08 +03:00
Silvan MosbergerandGitHub 29016e9c0e Merge pull request #324682 from philiptaron/__attrsFailEvaluation/python
pythonPackages: move __attrsFailEvaluation to allow deeper inspection
2024-07-26 02:00:22 +02:00
Audrey Dutcher 66d41e75e8 python{39,310,311,312,313}: Allow using cc to resolve dynamic libraries
This patch hasn't been complete since an alternate case was added to
cpython which allows using ld(1) to resolve libraries. In addition to
this, the stated reason for the patch, to improve startup times by
preventing cpython from invoking gcc to resolve libuuid, has not been an
issue since that logic was removed in cpython 3.9. Finally, this patch
creates a disparity between Linux and other operating systems (I am
working on FreeBSD right now) since the ld(1) case is system gated.

Since it no longer accomplishes its stated purpose, is no longer needed,
and creates platform disparities, we should remove it.

I've left the half of this patch which prevents /sbin/ldconfig from
being invoked, since no nix-compiled program should ever be invoking
absolute paths like this.
2024-07-20 23:56:42 -07:00
Randy Eckenrode 0e8dbe9540 python313: drop patch for _PY_SHORT_FLOAT_REPR == 0
The patch was merged upstream and is included in Python 3.13b4.
2024-07-21 00:26:22 -04:00
Randy Eckenrode 53f938e573 python{310,311,312,313}: fix LTO build
Python LTO builds using clang require the clang’s `llvm-ar` even on Darwin.
2024-07-20 21:33:28 -04:00