Skip to content

Commit

Permalink
pypy27Packages.incremental: fix the eval
Browse files Browse the repository at this point in the history
Without the change the eval fails as:

    $ nix-instantiate -A pypy27Packages.incremental
    error:
       … while evaluating the attribute 'drvPath'
         at lib/customisation.nix:365:7:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       … while evaluating the attribute 'drvPath'
         at lib/customisation.nix:365:7:
          364|     in commonAttrs // {
          365|       drvPath = assert condition; drv.drvPath;
             |       ^
          366|       outPath = assert condition; drv.outPath;

       … while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:34:12:
           33|
           34|   strict = derivationStrict drvAttrs;
             |            ^
           35|

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

       error: cannot coerce a set to a string: { scripts = «thunk»; }

NixOS#335112 (comment)
suggests that "The Python 2 version of buildPythonPackage doesn't support
optional-dependencies outside of passthru."

Added `passthru` explicitly.
  • Loading branch information
trofi committed Aug 31, 2024
1 parent 47375cb commit 51657f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/python-modules/incremental/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ let

dependencies = [ setuptools ] ++ lib.optionals (pythonOlder "3.11") [ tomli ];

optional-dependencies = {
passthru.optional-dependencies = {
scripts = [ click ];
};

Expand Down

0 comments on commit 51657f5

Please sign in to comment.