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
Add ledger_agent, trezor_agent and keepkey_agent packages #69153
Conversation
This is the same source code as |
And probably |
Thanks for the feedback and pointer to the existing pythonPackages.trezor_agent, which I somehow didn't notice, @mmahut! As you say, that package uses the same https://github.com/romanz/trezor-agent source code as is used in this PR in the I'll rephrase your suggestion to make sure I understood; is the aim to have a
I don't have Trezor or Keepkey devices accessible right now, so I can't fully test those changes, but if that's what you were suggesting I can make that change and we can hold off on merging until we can test the change fully. Also, do you (and/or @np?) want to be added as a maintainer to these top-level packages? (I'm fine not being a maintainer too btw, depending on your preference, just put myself there in this PR to get things started.) |
That is correct.
I think I can help with testing.
Sure, yes, please. More maintainers the better :) |
23979c8
to
001584d
Compare
Thanks for the feedback @mmahut @worldofpeace, please take another look.
I couldn't figure out a way to achieve what you suggested here.. The issue is that the
Because the top-level packages now are just using with As an aside, the listed versions above are the latest that have been published, but at https://github.com/romanz/trezor-agent the latest published version is 0.13.1. cc @romanz, would it be possible to publish the latest release to pypi.org as well?
Cool, I've added the two of you and myself (
|
The latest versions of specific agents' packages should be on PyPI, albeit under different versions than the Please let me know if I can fix the versioning to be more consistent and easier to follow :) |
Ah, that versioning scheme makes sense, given that all four releaseable units (three agents + I guess my confusion came from the repo being named |
This looks good to me, @worldofpeace might confirm is there is a better way to do this. @1000101 might help with ledger/keepkey testing. |
The pythonPackages.trezor_agent existed since earlier, now we also add a top-level package by making use of `toPythonApplication`.
001584d
to
51e66af
Compare
51e66af
to
d43ef23
Compare
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.
otherwise LGTM, weird that they have wheel in install_requires, should be in setup_requires... but that's an upstream issue
Sorry, this felt off my radar. I will try to get it tested with real hardware. |
Thanks for the review, @jonringer! Let me know if anyone has any remaining comments that have not been addressed, or otherwise how to progress with getting this PR merged. |
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.
LGTM 👍 Build them locally.
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.
nix-review
passes on NixOS
diff LGTM
executables seem to work
[6 built, 271 copied (481.2 MiB), 106.8 MiB DL]
https://github.com/NixOS/nixpkgs/pull/69153
6 package were build:
keepkey_agent ledger_agent python27Packages.ledger_agent python38Packages.keepkey_agent python38Packages.ledger_agent trezor_agent
awesome, I'll look into rebasing my trezor gpg agent module on this now |
Motivation for this change
Add new
ledger_agent
,trezor_agent
andkeepkey_agent
packages, providing the binaries:ledger-agent
ledger-gpg
trezor-agent
trezor-gpg
keepkey-agent
Also add hkjn as initial maintainer for
pythonPackages.trezor_agent
.Edit: Updated description after changes from review feedback.
Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nix-review --run "nix-review wip"
./result/bin/
)nix path-info -S
before and after)Notify maintainers
cc @mmahut @np