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.kubernetes: init at 5.0.0 #35668
Conversation
@GrahamcOfBorg build python2.pkgs.kubernetes python3.pkgs.kubernetes |
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
pname = "kubernetes"; | ||
version = "5.0.0"; | ||
|
||
patchPhase = '' |
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.
prePatch
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.
done.
sha256 = "0f1p9zkzpw0q1cqwnfn788mj3fjqg5z3vsd9pjnz50dk12znngwk"; | ||
}; | ||
|
||
testInputs = [ unittest2 ]; |
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.
checkInputs
? However, it seems like this is not needed.
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 did reuse the old exprission. I have fixed it and removed unittest2
from the propagatedBuildInputs
.
Thanks for spotting it.
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.
unittest2
is only needed for python < 2.7, which isn't supported by Nixpkgs. I'd say let's get rid of it.
if sys.version_info[0] == 2 and sys.version_info[1] < 7:
tests_require.append('unittest2==0.8.0')
a70cc7b
to
4a78962
Compare
}; | ||
|
||
checkInputs = [ unittest2 ]; | ||
propagatedBuildInputs = [ six backports_ssl_match_hostname argparse ]; |
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.
All but six
aren't required for the supported Python versions: https://github.com/websocket-client/websocket-client/blob/master/setup.py
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 have dropped all the dependencies that are not used for the python versions we have. Only six and unittest2 remains.
Thanks again.
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.
Why does unittest2
remain?
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.
because I forgot to drop it… done
13ac23d
to
3bbf42c
Compare
@GrahamcOfBorg build python2.pkgs.kubernetes python3.pkgs.kubernetes |
Failure on x86_64-linux (full log) Partial log (click to expand)
|
Failure on aarch64-linux (full log) Partial log (click to expand)
|
Now that's strange |
|
||
meta = with stdenv.lib; { | ||
description = "Kubernetes python client"; | ||
homepage = https://github.com/arteria/django-hijack; |
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 don't think that's correct :D
I'd say we just remove that dependency in
|
45303e8
to
1a7f3bb
Compare
Yes, this will just never be imported (https://github.com/websocket-client/websocket-client/blob/v0.47.0/websocket/_ssl_compat.py). I drop it now. I also just realized that since I wrote it, a new version of websocket-client went out, I just updated it. |
@GrahamcOfBorg build python2.pkgs.kubernetes python3.pkgs.kubernetes |
sha256 = "0jb1446053ryp5p25wsr1hjfdzwfm04a6f3pzpcb63bfz96xqlx4"; | ||
}; | ||
|
||
prePatch = if isPy27 then '' |
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 if
is not needed here, it doesn't harm to remove it for all Python versions
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.
yes, it is not necessary. It is more a way to tell maintainers it was only expected for python-2.7, but I can happily drop it if you prefer.
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.
Well, since I don't think Python 2 support will be dropped in the near future, it is more confusing than helpful.
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 have dropped it
Success on aarch64-linux (full log) Partial log (click to expand)
|
1a7f3bb
to
95d59d4
Compare
Motivation for this change
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)