Open akaihola opened 3 months ago
I think that issue was fixed by @phaer recently. Can you update your dream2nix version an check again?
I think that issue was fixed by @phaer recently.
I guess you mean the fix in PR #1001? I actually was already running a version from two days after the fix. Updating to today's main
didn't seem to help either:
$ nix run '.#default.lock' && nix develop
I think using &&
here isn't ideal. Most of the log comes from nix run .#default.lock which succeeds and correctly locks the latest version of click.
The error is triggered by the second command, while trying to evaluate the devshell. We probably could use an assertion to trigger better errors here or at least include it in the docs but the reason is:
overrides.click.buildPythonPackage.pyproject = true;
in default.nix
, if you remove that line it should work. This is because using a VCS url like in the example builds from a git clone which includes a pyproject.toml.
Using a released version like you do, locks a .whl feel from pypi which does not include a pyproject.toml (and format = "wheel"
in the buildPythonpackage arguments)
In
examples/packages/languages/python-local-development/pyproject.toml
, the dependencies are:This builds just fine, and also this seems to work:
But if I change the
click
dependency to e.g."click==8.1.7"
,"click<8"
or just"click"
, I get this:Other dependencies from PyPI that I have tried seem to work fine with and without a version specifier.