Commit Graph
1644 Commits
Author SHA1 Message Date
OTABI TomoyaandGitHub e4d95f4100 python3.tests: remove unnecessary condition and disable failing tests on 3.13 (#347206) 2024-10-14 18:09:39 +09:00
OTABI TomoyaandGitHub 8f8f0badb3 buildPython*: Deprecate and remove (buildPython* { ... }).override (#333670) 2024-10-14 17:56:43 +09:00
OTABI TomoyaandGitHub 0a77110029 mkPythonPackage, mkPythonApplication: handle passthru with stdenv.mkDerivation instead of lib.extendDerivation (#347130) 2024-10-14 17:46:49 +09:00
github-actions[bot]andGitHub 1404154595 Merge master into staging-next 2024-10-10 00:14:06 +00:00
Martin WeineltandGitHub 222c70de4e python313: 3.13.0.rc3 -> 3.13.0 (#347215) 2024-10-09 21:33:43 +02:00
github-actions[bot]andGitHub fc5d8c3e7d Merge master into staging-next 2024-10-09 06:04:53 +00:00
Robert Hensing 729225e355 treewide: lib.isInOldestRelease -> lib.oldestSupportedReleaseIsAtLeast 2024-10-08 11:14:24 +02:00
natsukium 63e98c642a python313: 3.13.0.rc3 -> 3.13.0
Changelog: https://docs.python.org/3.13/whatsnew/3.13.html
2024-10-08 10:57:48 +09:00
natsukium a05b328b2e python3.tests: remove unnecessary condition and disable failing tests on 3.13 2024-10-08 10:39:14 +09:00
Yueh-Shun Li 58bfe74123 buildPython*: Deprecate and remove (buildPython* { ... }).override
Deprecate (buildPythonPackage { ... }).override for Python packages in
favour of overridePythonAttrs.

This change does not affect the override interface of most Python
packages, as the override interface is provided by callPackage and
shadows the locally defined override attribute.
2024-10-08 01:09:35 +08:00
Yueh-Shun Li 21a1cf9686 mkPythonPackage, mkPythonApplication: handle passthru with mkDerivation 2024-10-08 00:21:42 +08:00
github-actions[bot]andGitHub 7ab01e096c Merge master into staging-next 2024-10-06 18:03:58 +00:00
jfvillablanca 859d6cdd8e rustpython: 0.3.1 -> 0.4.0 2024-10-06 20:59:50 +08:00
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