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]
d8c78f272c
Merge staging-next into staging
2024-08-30 18:04:32 +00:00
github-actions[bot]
b857d97eec
Merge master into staging-next
2024-08-30 18:04:02 +00:00
OTABI Tomoya
afbde71a11
python313FreeThreading: fix build ( #337791 )
2024-08-31 01:07:18 +09:00
github-actions[bot]
4544f25eb8
Merge staging-next into staging
2024-08-30 06:04:59 +00:00
github-actions[bot]
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 Tomoya
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 Tomoya
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 Tomoya
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]
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 Mosberger
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
Randy Eckenrode
d5f637590e
tree-wide: enable LTO on Darwin
2024-07-20 03:19:54 -04:00
Randy Eckenrode
0d7d9280d3
python{311,312,313}: use system libmpdec again
...
Override the configure check not to do a universal build. Using the system libmpdec is required to enable LTO on Darwin.
2024-07-20 01:11:53 -04:00
github-actions[bot]
f316203fda
Merge staging-next into staging
2024-07-19 00:03:05 +00:00
Martin Weinelt
d63b3b2faf
python313: 3.13.0b3 -> 3.13.0b4
...
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-beta-4
2024-07-18 17:07:11 +02:00
Martin Weinelt
01178b2f18
Merge pull request #327882 from alyssais/python312-backport
...
python312: make portability backport unconditional
2024-07-17 15:53:55 +02:00
Alyssa Ross
aba1b58d1f
python312: make portability backport unconditional
...
This avoids the maintenance headache associated with conditionally
applied patches, and fixes building for s390.
2024-07-17 12:33:29 +02:00
Martin Weinelt
176a56c40f
Merge remote-tracking branch 'origin/staging-next' into staging
...
Conflicts:
- pkgs/applications/misc/blender/default.nix
- pkgs/development/web/nodejs/nodejs.nix
2024-07-11 01:06:28 +02:00
Kira Bruneau
5c85fb3ce1
update-python-libraries: fix updating packages without src.fetcher
2024-07-10 18:39:19 -04:00
Vladimír Čunát
4c09ae2416
Merge branch 'staging-next' into staging
2024-07-08 10:43:15 +02:00
Martin Weinelt
ad9505ddce
python3Packages.pythonRelaxDepsHook: update example
2024-07-07 22:36:56 +02:00
Yureka
8cfb27bc21
python3*: backport fix for armv7l, aarch64, riscv64
...
Co-Authored-By: Florian Klink <flokli@flokli.de >
Signed-off-by: Yureka <fork-nixpkgs-with@yuka.dev >
2024-07-07 12:19:22 +03:00
Philip Taron
0213840cd8
pythonPackages: move __attrsFailEvaluation to allow deeper inspection
2024-07-04 14:49:03 -07:00
Vladimír Čunát
c76085b3a9
Merge branch 'master' into staging-next
2024-07-03 19:07:35 +02:00
Yueh-Shun Li
455314a3f0
buildPython*: make doCheck default less confusing
...
Modify the set pattern to hint developers that the doInstallCheck
attribute of Python packages, specified by the doCheck argument of
buildPythonPackage and buildPythonApplication, defaults to true instead
of false.
2024-07-03 02:42:59 +08:00
K900
bde999c03e
Merge branch 'master' into staging-next
2024-06-29 10:13:13 +03:00
Martin Weinelt
27b67c584a
cpython: fix changelog anchor for beta versions
2024-06-28 13:19:35 +02:00
Martin Weinelt
89551eddb7
python313: 3.13.0b2 -> 3.13.0b3
...
https://docs.python.org/3.13/whatsnew/changelog.html#python-3-13-0-beta-3
2024-06-28 13:19:32 +02:00
github-actions[bot]
2f3bfad6d2
Merge master into staging-next
2024-06-28 00:02:11 +00:00
Randy Eckenrode
da8f4fd6cb
python3Minimal: ensure _scproxy is disabled on Darwin
...
Python 3.12 attempts to build with the _scproxy enabled even when building python3Minimal. Override the configure check to make sure it is disabled. Otherwise, the Darwin stdenv bootstrap will fail.
2024-06-26 19:41:29 -04:00
Martin Weinelt
27aa2c8a9d
update-python-libraries: Reliably detect nix-prefetch-git
...
Makes sure that any attribute that triggers using fetchGit will result in
the updater using nix-prefetch-git.
2024-06-27 01:10:21 +02:00
Martin Weinelt
06922865e8
update-python-libraries: don't error out on nix-prefetch-url errors
...
$ nix-prefetch-url --type sha256 --unpack https://api.github.com/repos/pkgw/pwkit/tarball/pwkit@1.2.0
error: store path 'rb2j54laxa71152bsqayw4h5hni2nshj-pwkit@1.2.0' contains illegal character '@'
2024-06-24 12:14:40 +02:00
Martin Weinelt
737b5cd4f2
python3: 3.11.9 -> 3.12.4
...
As per our documented update schedule, we'll default to Python 3.12 in
the 24.11 release cycle, while recursing into both 3.11 and 3.12.
2024-06-24 12:14:39 +02:00
Martin Weinelt
b6ef66ed3d
Merge pull request #304741 from edgelesssys/python/fix-imports-check-py-output
...
[staging] python/hooks/python-imports-check-hook: use $python output if existing
2024-06-19 03:35:44 +02:00