2131 Commits
Author SHA1 Message Date
Yueh-Shun Li cbd527c8ad buildPython*: use finalAttrs.finalPackage for passthru attribute values 2025-01-24 21:04:31 +08:00
Yueh-Shun Li 617bc74413 buildPython*: move the format'-related assertion down to its value 2025-01-24 21:04:31 +08:00
Yueh-Shun Li d6a757bb01 buildPython*: prioritize user-specified passthru attrs 2025-01-24 21:04:31 +08:00
nixpkgs-ci[bot]andGitHub df755a5e9c Merge staging-next into staging 2025-01-17 18:04:58 +00:00
natsukium 6c7c9055de python314: 3.14.0a3 -> 3.14.0a4
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-alpha-4
2025-01-17 19:53:00 +09:00
Martin Weineltandnatsukium b734fd2caf python314: 3.14.0a2 -> 3.14.0a3
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-alpha-3
2025-01-17 19:47:29 +09:00
github-actions[bot]andGitHub f9082802a1 Merge staging-next into staging 2025-01-13 18:05:19 +00:00
Arne KellerandGitHub c9e6f18fac python311: fix mingwW64 cross, mark as broken for other versions (#372190) 2025-01-13 17:02:49 +01:00
github-actions[bot]andGitHub af90f480db Merge staging-next into staging 2025-01-11 06:04:46 +00:00
Palmer Cox a7f1305bc1 Fix optional-dependencies in mkPythonEditablePackage
The problem is that optional-dependencies looks something like:

    optional-dependencies = {
        extra1 = [ package1 package2 ];
    };

And the goal is to transform that into some JSON that works as a
pyproject file. So, its supposed to look something like:

    {
        "optional-dependencies": {
            "extra1": [ "package1" "package2" ]
        }
    }

Previously, we were trying to do that converstion with:

    optional-dependencies = lib.mapAttrs (_: lib.getName) optional-dependencies;

The problem is that we're calling lib.getName on the array of
dependencies. Instead, we convert the code to call lib.getName on each
individual dependency in the array.
2025-01-10 23:16:32 -05:00
Yueh-Shun Li 9b07602c8e unittestCheckHook: lint with ShellCheck 2025-01-09 18:36:39 +08:00
Yueh-Shun Li 1e8f39148a unittestCheckHook: handle unittestFlagsArray __structuredAttrs-agnostically
Take unittestFlags as the new and conforming interface.

Keep unittestFlagsArray as is.
2025-01-09 18:36:39 +08:00
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 6658ddfa50 python311: fix mingwW64 cross, mark as broken for other versions 2025-01-08 18:39:21 +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