New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pythonPackages.cli-helpers: fix missing dependencies #52692
Conversation
@@ -19,12 +21,13 @@ buildPythonPackage rec { | |||
}; | |||
|
|||
propagatedBuildInputs = [ | |||
configobj | |||
terminaltables | |||
tabulate | |||
wcwidth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to no longer be a dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was the initial failure as I have indicated in motivation.
Even in master (e.g. 3d5025b) there is currently a reproducible failure:
git clone https://github.com/NixOS/nixpkgs
cd nixpkgs
nix-build -E 'with import ./. { }; pgcli'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dotlambda it's in install_requires
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I meant wcwidth
. I can't find wcwidth
in https://github.com/dbcli/cli_helpers/blob/v1.1.0/setup.py#L41-L45.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dotlambda sorry, I thought you were commenting the change, not just the last line.
I have tried removing wcwidth
and I get the following error:
Collecting wcwidth; extra == "widechars" (from tabulate[widechars]>=0.8.2->cli-helpers==1.1.0)
Could not find a version that satisfies the requirement wcwidth; extra == "widechars" (from tabulate[widechars]>=0.8.2->cli-helpers==1.1.0) (from versions: )
No matching distribution found for wcwidth; extra == "widechars" (from tabulate[widechars]>=0.8.2->cli-helpers==1.1.0)
builder for '/nix/store/18wzsymnny12jm8vyc930fhbzkpr7qg8-python3.7-cli_helpers-1.1.0.drv' failed with exit code 1
Seems to me as a propagated dependency.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, then it's good.
@@ -1,11 +1,13 @@ | |||
{ lib | |||
, buildPythonPackage | |||
, fetchPypi | |||
, configobj | |||
, terminaltables | |||
, tabulate | |||
, backports_csv | |||
, wcwidth |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove it here as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Again, this is much needed.
@GrahamcOfBorg eval |
@GrahamcOfBorg build python2.pkgs.cli-helpers python3.pkgs.cli-helpers |
Motivation for this change
I tried to update pgcli and noticed that cli-helpers were not being built, e.g.
This commit introduces two new dependencies for this package, configobj and mock. I have tested the modified package against pgcli.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)