2131 Commits
Author SHA1 Message Date
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
EmilyandGitHub 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
EmilyandGitHub 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]andGitHub 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]andGitHub 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]andGitHub b9f01e6de3 Merge staging-next into staging 2024-10-14 12:06:08 +00:00
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
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]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 4b2bd47103 Merge staging-next into staging 2024-10-09 06:05:20 +00: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 57c2e5683d buildPython hooks: format with shfmt 2024-10-08 07:42:21 +08: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