Commit Graph

1690 Commits

Author SHA1 Message Date
Silvan Mosberger
4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Wolfgang Walther
59953c2b3c
python3: proper syntax for Windows patches (#351010) 2024-12-07 20:31:20 +01:00
Martin Weinelt
ce5d74fbba
python310: 3.10.15 -> 3.10.16
https://docs.python.org/release/3.10.16/whatsnew/changelog.html
2024-12-06 02:01:53 +01:00
Martin Weinelt
239c446720
python39: 3.9.20 -> 3.9.21
https://docs.python.org/release/3.9.21/whatsnew/changelog.html
2024-12-06 02:01:09 +01:00
Martin Weinelt
1ec7e4eb52
python313: 3.13.0 -> 3.13.1
https://docs.python.org/release/3.13.1/whatsnew/changelog.html
2024-12-04 04:07:41 +01:00
Wolfgang Walther
8ac9869133
python: remove pythonForBuild passthru
Scheduled for 25.05.
2024-11-24 21:09:33 +01:00
Martin Weinelt
f862225a11
python314: 3.14.0a1 -> 3.14.0a2
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-alpha-2
2024-11-20 03:23:49 +01:00
OTABI Tomoya
55f94d9fda
python3Packages: Fix and document the removal of the local .overrideAttrs attribute (#350127) 2024-11-19 17:45:32 +09:00
Emily
ce788776a5 Merge master into staging-next 2024-11-09 12:51:01 +00:00
aleksana
571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00
Emily
a061b02a6f Revert "python{27,39,310,311,312,313,314}: use a bootstrap SDK on Darwin"
No longer necessary to mask an unwanted Python rebuild.

This reverts commit c455166b5f.
2024-11-07 19:09:09 +00:00
Emily
c455166b5f python{27,39,310,311,312,313,314}: use a bootstrap SDK on Darwin
Not sure why this is necessary now, since it should already be handled
as part of the bootstrap. This might not be the right fix but it does
fix eval.
2024-11-07 17:19:15 +00:00
Emily
8072991b1d
apple-sdk: propagate the libutil library (#353873) 2024-11-07 01:05:45 +00:00
Emily
d1e7262564 pypy{27,39,310}: drop darwin.libutil dependency 2024-11-07 00:39:35 +00:00
Emily
22f2052ca1 python{27,39,310,311,312,313,314}: drop Darwin libutil patch 2024-11-06 00:53:02 +00:00
Emily
61dec155d9
python3Packages.*Hook: support __structuredAttrs = true (the easier ones) (#351734) 2024-11-05 03:02:40 +00:00
Yueh-Shun Li
6597b74fea pypaBuildHook.tests: modernize 2024-11-05 10:47:23 +08:00
Yueh-Shun Li
e32457af0c setuptoolsRustHook: lint with ShellCheck 2024-11-05 10:47:23 +08:00
Yueh-Shun Li
65293f4247 pythonRemoveTestDirHook: lint with ShellCheck 2024-11-05 10:47:23 +08:00
Yueh-Shun Li
29c08adae1 pythonRelaxDepsHook: lint with ShellCheck
Ignore SC2164 at this moment, as it will be gone when adding `set -e`.
2024-11-05 10:47:22 +08:00
Yueh-Shun Li
3a79bc3aee pythonRelaxDepsHook: handle attributes __structuredAttrs-agnostically
Make the interation across pythonRelaxDeps and pythonRemoveDeps work
regardless of __structuredAttrs.
2024-11-05 10:47:22 +08:00
Yueh-Shun Li
e4f2f9dd22 pythonOutputDistHook: lint with ShellCheck 2024-11-05 10:47:22 +08:00
Yueh-Shun Li
ccb418b699 pythonNamespacesHook: lint with ShellCheck 2024-11-05 10:47:02 +08:00
Yueh-Shun Li
bab7ef307c pythonImportsCheckHook: lint with ShellCheck 2024-11-05 10:41:17 +08:00
github-actions[bot]
6e6e33bd99
Merge staging-next into staging 2024-11-01 18:05:02 +00:00
Yueh-Shun Li
967e5b43ed pythonImportsCheckHook: support __structuredAttrs = true 2024-10-28 22:22:42 +08:00
Yueh-Shun Li
69f4871514 pypaBuildHook: lint with ShellCheck 2024-10-28 22:22:42 +08:00
Yueh-Shun Li
1f39bb6586 pypaBuildHook: handle pypaBuildFlags __structuredAttrs-agnostically 2024-10-28 22:22:41 +08:00
Yueh-Shun Li
3a0f6fabff pipInstallHook: handle pipInstallFlags __structuredAttrs-agnostically 2024-10-28 21:21:15 +08:00
Yueh-Shun Li
c4bc1a8bb6 pipBuildHook: handle pipBuildFlags __structuredAttrs-agnostically 2024-10-28 21:20:07 +08:00
Yueh-Shun Li
1f8bb94bca pythonOutputDistHook: append *Phases with appendToVar 2024-10-28 21:19:51 +08:00
Olivér Falvai
e6b926034f
pypy: fix darwin build after sdk rework
https://hydra.nixos.org/build/276111920/nixlog/6/tail
2024-10-28 08:12:22 +01:00
github-actions[bot]
b67a45959d
Merge staging-next into staging 2024-10-27 00:16:01 +00:00
K900
f21f4ca3ee Merge remote-tracking branch 'origin/master' into staging-next 2024-10-26 21:05:47 +03:00
Francesco Gazzetta
68576df997 treewide: move tcl libraries under tclPackages 2024-10-26 16:23:15 +00:00
Greg Hellings
708a493c13 python3: proper syntax for Windows patches
Windows patches were being added with a shell glob, which was dying with
an error. See #351007. Use filesystem methods to walk the patch set and
retrieve the patch names.

Also, update the patches from the Fedora project to the latest for
Python 3.11.9 and add filtering for any that are already applied to the
3.11.10 in the current cycle.

python312 still fails to cross-compile after this patch, but at least
3.11 will again be available
2024-10-25 09:46:39 -05:00
Yueh-Shun Li
3e8d53b9e8 python3Packages.pythonCatchConflictsHook: fix tests with lib.overrideDerivation
Use lib.overrideDerivation instead of <pkg>.overrideDerivation
to fix the evaluation of
python3Packages.pythonCatchConflictsHook.tests.catches-conflict-multiple-chains,
as buildPythonPackage and buildPythonApplication no longer provide
<pkg>.overrideDerivation

Clean up the leftover of commit 58bfe74123 ("buildPython*:
Deprecate and remove (buildPython* { ... }).override")
2024-10-22 12:51:11 +08:00
Martin Weinelt
8044c0cc0a
python314: init at 3.14.0a1
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-alpha-1
2024-10-16 03:42:47 +02:00
github-actions[bot]
b9f01e6de3
Merge staging-next into staging 2024-10-14 12:06:08 +00:00
OTABI Tomoya
e4d95f4100
python3.tests: remove unnecessary condition and disable failing tests on 3.13 (#347206) 2024-10-14 18:09:39 +09:00
OTABI Tomoya
8f8f0badb3
buildPython*: Deprecate and remove (buildPython* { ... }).override (#333670) 2024-10-14 17:56:43 +09:00
OTABI Tomoya
0a77110029
mkPythonPackage, mkPythonApplication: handle passthru with stdenv.mkDerivation instead of lib.extendDerivation (#347130) 2024-10-14 17:46:49 +09:00
Martin Weinelt
48d0511af5 python312: 3.12.6 -> 3.12.7
https://docs.python.org/release/3.12.7/whatsnew/changelog.html
2024-10-13 11:09:54 +02:00
Randy Eckenrode
092b50a92c
python3: fix stdenv bootstrap on x86_64-darwin
The bootstrap tools linker sometimes crashes when trying to link the
sqlite3 tests, which causes the bootstrap Python not to have the sqlite3
module. This causes the freezegun module to fail to build later in the
bootstrap. Using the 11.0 SDK fixes the problem.

Upstream Python supports building with a newer SDK and back-deploying,
so this change should not negatively affect users on pre-11.0 releases.
2024-10-10 16:23:09 -04:00
Randy Eckenrode
3e5316cb96
python3: drop configd
configd is an alias for the SystemConfiguration framework, which is now
always part of the SDK. Removing this parameter because it effectively
does nothing now, which could be misleading to users.
2024-10-10 16:23:08 -04:00
Randy Eckenrode
b62e262366
python27: drop configd
configd is an alias for the SystemConfiguration framework, which is now
always part of the SDK. Removing this parameter because it effectively
does nothing now, which could be misleading to users.
2024-10-10 16:23:08 -04:00
Emily
e694240f77 Merge staging-next into staging 2024-10-10 01:23:52 +01:00
github-actions[bot]
1404154595
Merge master into staging-next 2024-10-10 00:14:06 +00:00
Martin Weinelt
222c70de4e
python313: 3.13.0.rc3 -> 3.13.0 (#347215) 2024-10-09 21:33:43 +02:00
github-actions[bot]
4b2bd47103
Merge staging-next into staging 2024-10-09 06:05:20 +00:00