Commit Graph
141 Commits
Author SHA1 Message Date
Martin Weinelt b79da2786f Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
	pkgs/development/python-modules/bundlewrap/default.nix
	pkgs/development/python-modules/coverage/default.nix
	pkgs/development/python-modules/h5netcdf/default.nix
	pkgs/development/python-modules/hypothesis/default.nix
	pkgs/development/python-modules/numba/default.nix
	pkgs/development/python-modules/optype/default.nix
	pkgs/development/python-modules/setuptools-git-versioning/default.nix
	pkgs/development/python-modules/sphinx/default.nix
2026-02-15 16:17:41 +01:00
Martin Weinelt 8ea6bde88d treewide: prune pythonOlder 3.10/3.11
This is a post 3.10 removal cleanup.
2026-02-15 04:33:54 +01:00
nixpkgs-ci[bot]andGitHub 635cb3e856 Merge staging-next into staging 2026-01-20 12:08:50 +00:00
Yueh-Shun LiandMatt Sturgeon de48b6a845 buildPython*: extend overrideStdenvCompat to fixed-point arguments
with `passthru.__stdenvPythonCompat`

Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-01-19 14:29:47 +08:00
Martin Weinelt 7465728763 buildPython*: run runtime dependency check hook for wheels 2026-01-14 21:58:06 +01:00
Martin WeineltandGitHub 8b9ad97235 buildPython*: support fixed-point arguments (#271387) 2026-01-04 20:51:07 +00:00
dmyTRUEk 2c7ad72241 mk-python-derivation: fix typo 2026-01-01 14:13:59 +02:00
Yueh-Shun Li 7e1f654883 buildPython*: format expressions 2025-12-18 17:55:00 +08:00
Yueh-Shun Li 0969c66247 buildPython*: support fixed-point arguments via lib.extendMkDerivation
Postpone formatting to minimize diff and to ease merging.
2025-12-18 17:55:00 +08:00
Yueh-Shun Li 353eec600b buildPythonPackage: chore: remove unnecessary set update 2025-12-17 22:17:22 +08:00
Yueh-Shun Li c4e3b67afb buildPython*: allow stdenv customization through <function>.override 2025-10-23 14:51:18 +08:00
Yueh-Shun Li bc122a602a python3Packages.buildPythonPackage: remove ineffective outputs cleanAttrs 2025-09-29 01:55:06 +08:00
Yueh-Shun Li 42ba377ba8 python3Packages.buildPythonPackage: make passthru.{dependencies,build-system} overridable 2025-09-29 01:55:06 +08:00
Yueh-Shun Li 67d2a84468 python3Packages.buildPythonPackage: pass passthru.dependencies empty or not 2025-09-29 01:55:05 +08:00
Yueh-Shun Li e2f75c6f5e python3Packages.buildPythonPackage: use pythonRelaxDepsHook iff related attributes non-empty 2025-09-29 01:55:05 +08:00
Yueh-Shun Li e25f3c9103 python3Packages.buildPythonPackage: make src overridable 2025-09-29 01:55:04 +08:00
Yueh-Shun Li b02dda8ea8 python3Packages.buildPythonPackage: make passthru.pyproject overridable 2025-09-29 01:55:04 +08:00
Yueh-Shun Li 0aebd262f1 python3Packages.buildPythonPackage: add internal helper getFinalPassthru
Add getFinalPassthru, an internal helper function that
produces informative error message
when an atttribute is not found in `finalAttrs.passthru`.
2025-09-29 01:55:02 +08:00
Ross Smyth 4241178a62 python: Allow users to set nativeInstallCheckInputs and installCheckInputs
to make consistent with the rest of nixpkgs
2025-09-02 14:00:28 -04:00
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 Walther 5a0711127c treewide: run nixfmt 1.0.0 2025-07-24 13:55:40 +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
nixpkgs-ci[bot]andGitHub 92da411185 Merge staging-next into staging 2025-05-24 00:17:23 +00:00
Martin WeineltandGitHub a64a02f6d6 buildPythonPackage: preserve the disabled effect after <pkg>.overrideAttrs (#376419) 2025-05-23 22:39:11 +02:00
Yueh-Shun Li 67564e09a5 buildPython*: pass check-related args whenever specified
Pass
- disabledTestMarks
- disabledTestPaths
- disabledTests
- enabledTestMarks
- enabledTestPaths
- enabledTests
- pytestFlags
- pytestFlagsArray
- unittestFlags
- unittestFlagsArray

whenever they are specified,
no matter if doCheck is true or if they are empty lists.

Simplify the buildPython* argument handling
and bring us closer to the deprecation of overridePythonAttrs
and the adoption of fixed-point arguments.
2025-04-30 06:25:38 +08:00
Yueh-Shun Li bb3a41f312 buildPython*: fix the disabled functionality for overrideAttrs- 2025-04-11 16:34:14 +08:00
Yueh-Shun Li e1e072bf03 python3Packages.pytestCheckHook: support enabledTestMarks and disabledTestMarks 2025-03-23 23:51:16 +08:00
Yueh-Shun Li f7aeb5a9b7 python3Packages.pytestCheckHook: support enabledTests 2025-03-23 23:51:16 +08:00
Yueh-Shun Li 4174f6ed5c python3Packages.pytestCheckHook: support enabledTestPaths 2025-03-23 23:10:04 +08:00
Yueh-Shun Li 55d08bb886 buildPythonPackage: simplify check-related attribute inheritance 2025-03-07 16:48:04 +08:00
Yueh-Shun Li ad8dfff2dd buildPythonPackage: add and use lib inheritance 2025-03-02 21:54:05 +08:00
Yueh-Shun Li f2cbc7da9e buildPythonPackage: sort lib inheritance 2025-03-02 21:51:24 +08:00
Yueh-Shun Li 2aa22b5edc buildPythonPackage: remove obsolete lib inheritance 2025-03-02 21:49:02 +08:00
Yueh-Shun Li 70322e2fa2 buildPythonPackage: format expression 2025-03-02 21:44:43 +08:00
Martin WeineltandGitHub d15ca73b55 buildPython*: make name-related attributes overridable via overrideAttrs (#376714) 2025-02-08 18:07:59 +01:00
Yueh-Shun Li 4134fdc75c buildPython*: always specify attributes catchConflicts and dontWrapPythonPrograms
Always specify catchConflicts and dontWrapPythonPrograms.

Make them overrideAttrs-overridable.
2025-02-04 06:36:24 +08:00
Yueh-Shun Li c540331279 buildPython*: make name-relaed attributes overridable via overrideAttrs
Make name, pname and version overridable via overrideAttrs
for Python packgaes constructed with buildPython*.
2025-02-04 02:11:22 +08:00
K900 51575400a3 buildPython*: fix mismerge 2025-02-03 19:11:59 +03:00
K900 5c3fd0ab9f Merge remote-tracking branch 'origin/master' into staging-next 2025-02-03 09:17:01 +03:00
K900 c15f4ee007 Merge remote-tracking branch 'origin/master' into staging-next 2025-02-02 09:47:44 +03:00
Yueh-Shun Li 3678c2ea8d buildPython*: format expression after restructuring 2025-02-02 14:26:22 +08:00
Yueh-Shun Li 6d2625c64b buildPython*: remove redundant parenthesis
This commit is intentionally unformatted
for smoother merging and rebasing experience.
2025-02-02 14:26:22 +08:00
Yueh-Shun Li 2b6cde5354 buildPython*: move argument-dependent let-in variables down below finalAttrs
This commit is intentionally unformatted
for smoother merging and rebasing experience.
2025-02-02 14:26:22 +08:00
Yueh-Shun Li 04c39df325 buildPython*: abstract out transformDrv 2025-02-02 14:26:22 +08:00
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
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 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