Commit Graph
1718 Commits
Author SHA1 Message Date
Yueh-Shun Li 76f6a3b292 setuptoolsBuildHook: lint with ShellCheck 2025-01-09 18:36:38 +08:00
Yueh-Shun Li d8c36cb252 setuptoolsBuildHook: support __structuredAttrs
Handle flags with appendToVar and concatTo.

Stop Bash-expanding elements of
setupPyGlobalFlags and setupPyBuildFlags.
2025-01-09 18:36:38 +08:00
Yueh-Shun Li ec6f585f05 pytestCheckHook: lint with ShellCheck 2025-01-09 18:36:37 +08:00
Yueh-Shun Li 26f09762a8 pytestCheckHook: support __structuredAttrs
Add flag pytestFlags as the new, conforming interface
replacing pytestFlagsArray.

Stop Bash-expanding disabledTests and disabledTestPaths.

Handle disabledTestPaths with `pytest --ignore-glob <path>`
to keep globbing support.
Check if each path glob matches at least one path
using the `glob` module from the Python standard library.

Also make buildPythonPackage and buildPythonApplication
stop escaping the elements of disabledTests and disabledTestPaths.
2025-01-09 18:36:37 +08:00
Peder Bergebakken Sundt 8fd082ed7f mk-python-derivation: passthru disabled
Enables outside testing of whether a package is supported for the current interpreter
2025-01-09 00:37:17 +01:00
FliegendeWurst a104720c3e pypy310: 7.3.12 -> 7.3.17 2025-01-03 11:53:27 +01:00
FliegendeWurst 98f7e5a8b0 pypy27: 7.3.12 -> 7.3.17 2025-01-03 11:53:27 +01:00
Gaetan Lepage 8ea14f4ba1 rustpython: move to by-name 2024-12-30 22:28:02 +01:00
github-actions[bot]andGitHub 8c5656aa89 Merge master into staging-next 2024-12-15 00:17:27 +00:00
sternenseemannandGitHub a0a35b6c24 Fix cross eval issues (#362546) 2024-12-14 22:14:52 +01:00
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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00
Silvan Mosberger 84d4f874c2 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 https://github.com/infinisil/treewide-nixpkgs-reformat-script/archive/a08b3a4d199c6124ac5b36a889d9099b4383463f.tar.gz \
      --argstr baseRev 78e9caf153
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:23:58 +01:00
Artturin e700e52405 python2: Fix alias usage on cross 2024-12-08 22:01:38 +02:00
Martin WeineltandGitHub 7c0647e562 python312: fix memory exhaustion vulnerability in asyncio.protocols (#362523) 2024-12-08 15:17:41 +01:00
K900 2e337411b0 Merge remote-tracking branch 'origin/master' into staging-next 2024-12-08 08:46:20 +03:00
Wolfgang WaltherandGitHub 59953c2b3c python3: proper syntax for Windows patches (#351010) 2024-12-07 20:31:20 +01:00
github-actions[bot]andGitHub b0ed0ab3f1 Merge master into staging-next 2024-12-07 12:05:41 +00:00
Martin Weinelt 861d083530 python312: fix memory exhaustion vulnerability in asyncio.protocols
https://mail.python.org/archives/list/security-announce@python.org/thread/H4O3UBAOAQQXGT4RE3E4XQYR5XLROORB/

Fixes:CVE-2024-12254
2024-12-06 19:12:17 +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 cffb889dc8 python311: 3.11.10 -> 3.11.11
https://docs.python.org/release/3.11.11/whatsnew/changelog.html
2024-12-06 01:58:32 +01:00
Martin WeineltandGitHub f20bf3e36b python312: 3.12.7 -> 3.12.8 (#361740) 2024-12-04 19:44:16 +01:00
github-actions[bot]andGitHub 944c1ac351 Merge staging-next into staging 2024-12-04 16:14:24 +00:00
Martin Weinelt 97365475df python312: 3.12.7 -> 3.12.8
https://docs.python.org/release/3.12.8/whatsnew/changelog.html
2024-12-04 13:21:00 +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 56b09628e3 stdenv: support multi-char separators in concatStringsSep
One prominent use-case for this is pytestCheckHook. This will help
making it work with structuredAttrs in the future.
2024-11-30 16:38:02 +01:00
github-actions[bot]andGitHub 9a94a24ad9 Merge staging-next into staging 2024-11-25 14:38:16 +00:00
Wolfgang Walther d86588d230 treewide: improve prepending and appending derivation arguments in bash code
Those would be problematic with __structuredAttrs turned on, because
they'd turn those nice bash arrays back into strings - and potentially
lose some of the values on the way.
2024-11-25 09:09:23 +01:00
Wolfgang Walther 8ac9869133 python: remove pythonForBuild passthru
Scheduled for 25.05.
2024-11-24 21:09:33 +01:00
github-actions[bot]andGitHub 1bdb3ae924 Merge staging-next into staging 2024-11-22 00:15:52 +00: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
Emily 1634419f4f Merge staging-next into staging 2024-11-19 14:15:02 +00:00
OTABI TomoyaandGitHub 55f94d9fda python3Packages: Fix and document the removal of the local .overrideAttrs attribute (#350127) 2024-11-19 17:45:32 +09:00
Martin Weinelt 40f89c6e0d python3.pkgs.pythonRuntimeDepsCheckHook: don't validate wheel metadata
Metadata can have issues that the packaging library will complain about,
but that should not prevent us from building any package.
2024-11-18 18:36:51 +01:00
Martin Weinelt d6c1a5e4e2 python3.pkgs.pythonRuntimeDepsCheckHook: allow prereleases
Updating to prereleases should be possible, but making this an option is
difficult, given that for packages with many consumers you would have to
set it in each consumer.

We thoroughly test the package set, so allowing prereleases unconditionally
shouldn't be too bad.

Closes: #301698
2024-11-18 18:36:46 +01:00
Emily 63a7b4f143 python3: remove code for macOS < 11 2024-11-18 00:14:00 +00: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
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