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
Py junos eznc #36215
Py junos eznc #36215
Conversation
}; | ||
|
||
buildInputs = [ | ||
scp six pyserial paramiko netaddr ncclient lxml jinja2 pyyaml |
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 those dependencies only needed at build time of the package? All python dependencies that are needed at runtime, should be also in propagatedBuildInputs
.
|
||
buildInputs = [ | ||
setuptools paramiko lxml libxml2 libxslt | ||
]; |
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.
same here.
|
||
|
||
buildInputs = [ | ||
paramiko |
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.
same here.
Ok, changed the dependencies, apparently they are not needed to build. |
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.
Please ensure that tests are run for each package, if it provides some. You may have to set checkInputs
and checkPhase
.
If there are no tests, add the following lines:
# no tests implemented
doCheck = false;
pkgs/top-level/python-packages.nix
Outdated
|
||
ncclient = callPackage ../development/python-modules/ncclient {}; | ||
|
||
junos-eznc = callPackage ../development/python-modules/junos-eznc {}; |
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.
The attributes in python-packages.nix
should be ordered alphabetically.
|
||
meta = with stdenv.lib; { | ||
homepage = https://github.com/jbardin/scp.py; | ||
description = "scp module for paramiko"; |
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.
Capitalize first letter (or even SCP in this case): https://nixos.org/nixpkgs/manual/#sec-standard-meta-attributes
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.
The name of scp seems to be lowercase scp
, not capitalised even at the beginning of a sentence, at least in its manpage. I think this seems a reasonable place not to apply the rule blindly.
|
||
|
||
propagatedBuildInputs = [ | ||
setuptools paramiko lxml libxml2 libxslt |
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.
setuptools
should not be needed here
, buildPythonPackage | ||
, fetchPypi | ||
, pythonPackages | ||
, setuptools |
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.
not used
pythonPackages.junos-eznc: init at 2.1.7 pythonPackages.junos-eznc: init at 2.1.7
Ok, I went through your comments. Thanks for pointing out the problems. |
@GrahamcOfBorg build python36Packages.scp python27Packages.ncclient python27Packages.scp python27Packages.junos-eznc |
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-linux (full log) Partial log (click to expand)
|
Failure on x86_64-darwin (full log) Partial log (click to expand)
|
Motivation for this change
Some Pypi packages I was missing.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)