Commit Graph

151 Commits

Author SHA1 Message Date
adisbladis
54bea898fa python3Packages.buildPythonPackage: Don't copy input list when checking inputs 2026-05-21 15:08:32 +12:00
Eman Resu
0f027769b2 buildPythonPackage: use nullable attr keys instead 2026-05-11 21:54:29 -04:00
Eman Resu
b57eb40ea7 buildPythonPackage: avoid validating python itself 2026-05-11 21:38:03 -04:00
Eman Resu
ce3dc05a4c buildPythonPackage: save a function call 2026-05-11 21:38:03 -04:00
Yueh-Shun Li
82da9cf45c python3Packages.buildPythonPackage: ban pytestFlagsArray 2026-04-27 03:59:04 +08:00
Yueh-Shun Li
521c09a80b buildPythonPackage: overrideStdenvCompat: show position in its warning message (#481980) 2026-04-26 10:46:40 +00:00
nixpkgs-ci[bot]
5bbb1b1e97 Merge staging-next into staging 2026-02-15 18:08:20 +00:00
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
Stefan Frijters
2d73bd4b51 python3Packages.mkPythonDerivation: move LANG into env for structuredAttrs 2026-02-13 00:23:37 +01:00
Yueh-Shun Li
773f5cc8c8 buildPythonPackage: overrideStdenvCompat: add position to warning message
Co-authored-by: Matt Sturgeon <matt@sturgeon.me.uk>
2026-01-27 10:46:17 +00:00
Yueh-Shun Li
f83867d2d4 buildPythonPackage: comment on passthru.__stdenvPythonCompat 2026-01-20 23:17:19 +08:00
nixpkgs-ci[bot]
635cb3e856 Merge staging-next into staging 2026-01-20 12:08:50 +00:00
Yueh-Shun Li
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 Weinelt
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]
92da411185 Merge staging-next into staging 2025-05-24 00:17:23 +00:00
Martin Weinelt
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 Weinelt
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