-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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
weechatScripts.weechat-otr: init at 1.9.2 #62743
Conversation
pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix
Outdated
Show resolved
Hide resolved
potr = pythonPackages.potr.overridePythonAttrs (oldAttrs: { | ||
propagatedBuildInputs = [ pycrypto ]; | ||
}); | ||
in stdenv.mkDerivation 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.
bit nitpicky but might look nicer with a line break somewhere round 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.
I don't think there is a style guide for this. Scrolling through nixpkgs' manual brought up another in stdenv.mkDerivation
in the same line. The let
example in nix's manual does also continues on the same line.
pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix
Outdated
Show resolved
Hide resolved
pkgs/applications/networking/irc/weechat/scripts/weechat-otr/default.nix
Outdated
Show resolved
Hide resolved
This PR was opened a month ago. What's the status? |
Seems to have fallen under the radar. If you could post the usage here I will test this. |
2f81671
to
d81e7bd
Compare
@Lassulus: Thanks for picking up this PR. You can test this WeeChat-Script as described in the WeeChat chapter of the nixpkgs manual. All you have to do is create an overlay for WeeChat with this package as a script. |
alright, tested with the checkout PR and this beauty here: can we build this with python3? python2 is gonna be EOL quite soon |
@Lassulus: Thanks a lot for testing the changes and your feedback.
Afaik, all WeeChat scripts are using the Python version of the Thus I think that this is not in the scope of this PR. However, with WeeChat switching all scripts to Python 3 for the same deprecation reasons, one should do the same for the nixpkgs. On the other hand, changing |
alright, then I'm gonna merge this. |
tbh I haven't tried it yet, but I'd try to build weechat (and some of the scripts we support here) with python3 and if that works I'd simply pin |
Hello, I just wanted to drop by very quickly to publicly state that I am aware of the pycryptodome issue, and very ashamed of it. Work on that front has started out a while ago (proof: python-otr/pure-python-otr#68 ) and I'm the one responsible for the lack of progress :( Thanks for the hack to make it work, I promise I'm trying to sort it out soon so you don't need to ship pycrypto just for potr anymore :/ |
Motivation for this change
This PR adds the
otr.py
script for WeeChat.As discussed both in the NixOS Wiki and in
potr
's issue tracker before,potr
does not work properly with the current version ofpycryptodome
and requires an older version ofpycrpto
. Therefore, the last release ofpycrypto
, with Debian's security patches applied, will be used.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)