-
-
Notifications
You must be signed in to change notification settings - Fork 15.5k
cloudmonkey: init at 5.3.3 with related dependency argcomplete: init at 1.8.2 #26124
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
Conversation
pkgs/top-level/python-packages.nix
Outdated
@@ -1159,6 +1159,28 @@ in { | |||
}; | |||
}; | |||
|
|||
argcomplete = buildPythonPackage rec { |
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.
Python modules have to be in the directory pkgs/development/python-modules/
as suggested here.
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.
Thanks! It's been a while since I last contributed a python library. Just pushed a new commit for this.
@@ -0,0 +1,25 @@ | |||
{ python2Packages, lib }: |
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.
FYI, it seems no tests are executed.
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'm mostly a python user rather than a developer and couldn't find where to enable the tests for cloudmonkey (nothing in the repo or its setup.py). Any pointers?
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.
Yep, I'm also not able to find any tests;)
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.
No prob!
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.
if there are no tests, add doCheck = false;
and include a comment explaining why they're disabled
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.
Comment added. Thanks!
37d35f8
to
4be0d8b
Compare
@@ -0,0 +1,25 @@ | |||
{ python2Packages, lib }: |
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.
Yep, I'm also not able to find any tests;)
meta = with lib; { | ||
description = "Bash tab completion for argparse"; | ||
homepage = "https://argcomplete.readthedocs.io"; | ||
maintainers = maintainers.womfoo; |
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 think this should be a list.
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.
Fixed
2a56d5d
to
26240e2
Compare
|
||
doCheck = false; # bash-completion test fails with "compgen: command not found". | ||
|
||
propagatedBuildInputs = [ coverage dicttoxml flake8 pexpect prettytable requests_toolbelt ]; |
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.
are all of these runtime dependencies? To me, it seems like some (like flake8) are only needed for tests
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.
You're right, now moved coverage
and flake8
to a commented buildInputs
while tests are disabled. I've also manually tested the package and it works fine.
26240e2
to
cf14cf3
Compare
cf14cf3
to
4126cc1
Compare
(nix.useSandbox on NixOS,
or option
build-use-sandbox
innix.conf
on non-NixOS)
nix-shell -p nox --run "nox-review wip"
./result/bin/
)