2131 Commits
Author SHA1 Message Date
Martin Weinelt 048507355c buildPythonPackage: use nix-update as the default update script
Much more robust and supports various fetchers like cargo, npm or yarn.
2025-08-22 02:37:00 +02:00
Wolfgang WaltherandGitHub 25fedb005f Revert "python3Packages.buildPythonPackage: default enabledTestPaths = [ "." ]" 2025-08-19 12:47:11 +00:00
nixpkgs-ci[bot]andGitHub bffa08fa9f Merge staging-next into staging 2025-08-19 06:06:52 +00:00
Fabián Heredia Montiel 0e9af74ced Merge remote-tracking branch 'origin/master' into staging-next 2025-08-18 22:43:58 -06:00
7c6f434candGitHub dc2ad08bd9 pypy: make CFFI builds find libsqlite3 (#431707) 2025-08-18 23:09:30 +00:00
Wolfgang WaltherandGitHub 746cd1fbea python3Packages.buildPythonPackage: default enabledTestPaths = [ "." ] (#425191) 2025-08-18 14:54:30 +00:00
Yueh-Shun Li 5bf25dffb6 python3Packages.buildPythonPackage: default enabledTestPaths = [ "." ]
Explicitly provide a default value for the argument `enabledTestPaths`
as the current working directory (`enabledTestPaths = [ "." ]`)
to simplify overriding (making `enabledTestPaths` always specified as a
non-empty list) while preserving `pytest`'s default behaviour of
discovering tests in the current working directory.

Assert the specified `enabledTestPaths` value to be a non-empty list.
2025-08-18 04:43:19 +08:00
nixpkgs-ci[bot]andGitHub 9553b76500 Merge staging-next into staging 2025-08-16 06:14:01 +00:00
K900 f4924fc36c Merge remote-tracking branch 'origin/master' into staging-next 2025-08-16 09:11:21 +03:00
Martin Weinelt 53582707b1 python314: 3.14.0rc1 -> 3.14.0rc2
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0rc2
2025-08-16 02:53:00 +02:00
Martin Weinelt 4345a37636 python313: 3.13.6 -> 3.13.7
https://docs.python.org/release/3.13.7/whatsnew/changelog.html
2025-08-14 23:14:35 +02:00
Martin Weinelt 8dbf0b3423 cpython: remove libxcrypt on 3.13 and newer
The 3.13 release dropped support for the crypt module, so this dependency
could have been dropped much earlier.

Drops the `withLibxcrypt` argument, because manging the default has
become quite a bit more complicated.
2025-08-13 22:16:01 +02:00
Martin Weinelt 5f974fa39f python313: revert commit that locks ssl sockets
This breaks among other things the websockets package and is due to be
reverted in 3.13.7.
2025-08-10 00:06:16 +02:00
DavHauandMartin Weinelt 9edd40908d python3Minimal: remove pkg-config dependency
Removes the build time dependency on pkg-config if python3 is build with the `withMinimal` flag enabled

This change is driven by the motivation to use python3 earlier in stdenv for hooks.
2025-08-09 19:04:52 +02:00
DavHauandMartin Weinelt bce0bb82a0 python3Minimal: refactor - add withMinimal flag
simplifies the interface of building cpython minimally
2025-08-09 19:04:51 +02:00
Martin Weinelt 838a7bde50 python313: 3.13.5 -> 3.13.6
https://docs.python.org/release/3.13.6/whatsnew/changelog.html
2025-08-07 13:48:01 +02:00
Max Wipfli e33181bc62 pypy{27,310,311}: make CFFI builds find libsqlite3 2025-08-07 11:00:23 +02:00
Emily 5ba6a021b5 python3: fix build directory scrubbing 2025-08-03 20:52:24 +01:00
Ross Smyth bb7c7900e1 rocksdb, s7, python3, flint, release-cross: mingw_w64_pthreads -> pthreads 2025-08-01 15:47:52 -04:00
Wolfgang WaltherandGitHub 4fbb23ef4e top-level/release-attrpaths-superset: remove __attrsFailEvaluation (#428015) 2025-07-24 19:45:36 +00:00
Wolfgang Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +02:00
Wolfgang Walther 59233ecd0d top-level/release-attrpaths-superset: remove __attrsFailEvaluation
This doesn't seem to be necessary anymore. I confirmed by:
- Adding a lib.warn into the __attrsFailsEvaluation branch - never got
any.
- Removing it everywhere and running full Eval on it - no errors, no
rebuilds.
2025-07-23 19:23:23 +02:00
Martin WeineltandGitHub 6855b0a86e python3: fix passthru tests after b937eac (#427590) 2025-07-23 01:08:50 +02:00
Martin Weinelt 08aed995ea python3: fix passthru tests after b937eac 2025-07-23 00:52:19 +02:00
Martin Weinelt 71a749810c python314: 3.14.0b4 -> 3.14.0rc1
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0rc1
2025-07-23 00:32:31 +02:00
Wolfgang Walther 38002286d7 python3Packages.setuptoolsCheckHook: move to aliases
This had already been removed and should be an alias now.
2025-07-20 12:04:57 +02:00
nixpkgs-ci[bot]andGitHub 76b50d86bc Merge master into staging-next 2025-07-09 00:18:18 +00:00
Martin Weinelt bae9fdacc3 python314: 3.14.0b3 -> 3.14.0b4
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-4
2025-07-08 18:56:10 +02:00
Alyssa Ross e0910df589 Merge remote-tracking branch 'origin/staging-next' into staging
Conflicts:
	pkgs/by-name/me/meson/package.nix
2025-07-02 14:49:42 +02:00
Martin Weinelt d2e9be2b07 buildPython*: throw on empty format
This is the ratchet that disallows introducing new python packages that
do not define a package format.
2025-07-02 10:18:35 +02:00
Martin Weinelt ae4a1a485a treewide: add explicit format attribute for Python packages
If a Python package does not come with either `format` or `pyproject` we
consider it a setuptools build, that calls `setup.py` directly, which is
deprecated.

This change, as a first step, migrates a large chunk of these packages to
set setuptools as their explicit format

This is so we can unify the problem space for the next step of the
migration.
2025-07-02 05:56:47 +02:00
Martin WeineltandGitHub 9bf73b68ec python3Packages.sphinxHook: move to preFixupPhases (#416771) 2025-06-24 14:57:40 +02:00
Guillaume GirolandGitHub 2ab3ac5c2b separateDebugInfo: add symlinks to executable and source for debuginfod support (#394674) 2025-06-20 23:09:03 +02:00
nixpkgs-ci[bot]andGitHub dc29423237 Merge staging-next into staging 2025-06-18 00:18:04 +00:00
nixpkgs-ci[bot]andGitHub 93aa3b82df Merge master into staging-next 2025-06-18 00:17:19 +00:00
Martin Weinelt 79558756d1 python314: 3.14.0b2 -> 3.14.0b3
https://docs.python.org/3.14/whatsnew/changelog.html#python-3-14-0-beta-3
2025-06-18 00:40:46 +02:00
Guillaume Girol 832e521ef9 python: __structuredAttrs = true
needed by separateDebugInfo = true
2025-06-14 22:14:56 +02:00
Anton Mosich facae77bf5 python3Packages.sphinxHook: move to preFixupPhases
If sphinxHook runs before the fixup phase, possibly generated manpages
will get compressed in the fixup phase.
2025-06-14 21:23:01 +02:00
Martin WeineltandGitHub c4fa80e7e3 python313: 3.13.4 -> 3.13.5 (#416039) 2025-06-14 00:19:47 +02:00
Martin Weinelt 70b32c168d python313: 3.13.4 -> 3.13.5
https://docs.python.org/release/3.13.5/whatsnew/changelog.html
2025-06-12 06:19:25 +02:00
DavHau 516e32cd7c python3Minimal: remove dependency on libffi
This makes python3Minimal mor minimal

When working on https://github.com/NixOS/nixpkgs/pull/405822 I assumed that libffi was a mandatory dependency of python, but it's not.
2025-06-11 11:44:17 +07:00
K900 7479f39034 Merge remote-tracking branch 'origin/master' into staging-next 2025-06-09 18:08:45 +03:00
natsukium 94552b6dbd python314: address CVE-2025-4517, CVE-2025-4330, CVE-2025-4138, CVE-2024-12718, CVE-2025-4435
https://mail.python.org/archives/list/security-announce@python.org/thread/MAXIJJCUUMCL7ATZNDVEGGHUMQMUUKLG/

https://www.cve.org/CVERecord?id=CVE-2025-4517
https://www.cve.org/CVERecord?id=CVE-2025-4330
https://www.cve.org/CVERecord?id=CVE-2025-4138
https://www.cve.org/CVERecord?id=CVE-2024-12718
https://www.cve.org/CVERecord?id=CVE-2025-4435
2025-06-09 19:43:43 +09:00
Martin Weinelt 05ed4c6594 python310: 3.10.17 -> 3.10.18
https://docs.python.org/release/3.10.18/whatsnew/changelog.html

Fixes: CVE=2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:10 +02:00
Martin Weinelt 3fffba538e python311: 3.11.12 -> 3.11.13
https://docs.python.org/release/3.11.13/whatsnew/changelog.html

Fixes: CVE=2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:10 +02:00
Martin Weinelt 8cbadfa068 python312: 3.12.10 -> 3.12.11
https://docs.python.org/release/3.12.11/whatsnew/changelog.html

Fixes: CVE-2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:09 +02:00
Martin Weinelt c83cbd4c6f python313: 3.13.3 -> 3.13.4
https://docs.python.org/release/3.13.4/whatsnew/changelog.html

Fixes: CVE-2024-12718, CVE-2025-4138, CVE-2025-4330, CVE-2025-4517
2025-06-04 19:27:05 +02:00
nixpkgs-ci[bot]andGitHub 5b0186d6f8 Merge master into staging-next 2025-06-01 18:04:52 +00:00
Sergei Trofimovich dc251ab95c pythonInterpreters.pypy310_prebuilt: set mainProgram
Without the change the eval fails as:

    $ nix build --no-link -f. pythonInterpreters.pypy310_prebuilt.tests.test-packageOverrides
    error:
       … in the condition of the assert statement
         at pkgs/development/interpreters/python/tests.nix:212:11:
          211|           in
          212|           assert myPython.pkgs.foobar == myPython.pkgs.numpy;
             |           ^
          213|           myPython.withPackages (ps: with ps; [ foobar ]);

       … while evaluating the attribute 'outPath'
         at lib/customisation.nix:421:7:
          420|         drv.drvPath;
          421|       outPath =
             |       ^
          422|         assert condition;

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)

       error: attribute 'mainProgram' missing
       at pkgs/by-name/me/meson/package.nix:75:52:
           74|           --replace-fail "PythonExternalProgram('python3', mesonlib.python_command)" \
           75|                          "PythonExternalProgram('${python3.meta.mainProgram}', mesonlib.python_command)"
             |                                                    ^
           76|         substituteInPlace mesonbuild/modules/python3.py \
2025-06-01 10:06:49 +01:00
Martin Weinelt 4fa55ce14d Merge remote-tracking branch 'origin/master' into staging-next 2025-05-31 13:30:35 +02:00