Skip to content

Commit

Permalink
buildPython*: make passthru.disabled overridable via overrideAttrs
Browse files Browse the repository at this point in the history
Make it possible to override Python packages
the `disabled` argument taken by buildPython*
as `passthru.disabled` via overrideAttrs.
  • Loading branch information
ShamrockLee committed Jan 24, 2025
1 parent 49eef73 commit 3e8185a
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions pkgs/development/interpreters/python/mk-python-derivation.nix
Original file line number Diff line number Diff line change
Expand Up @@ -455,9 +455,14 @@ let
# for fixed-point arguments support in the future.
transformDrv =
drv:
extendDerivation (
drv.disabled
-> throw "${lib.removePrefix namePrefix drv.name} not supported for interpreter ${python.executable}"
) { } (toPythonModule drv);
extendDerivation
(
drv.disabled
-> throw "${lib.removePrefix namePrefix drv.name} not supported for interpreter ${python.executable}"
)
{
overrideAttrs = fdrv: transformDrv (drv.overrideAttrs fdrv);
}
(toPythonModule drv);
in
transformDrv self

0 comments on commit 3e8185a

Please sign in to comment.