-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
nicotine-plus: 1.4.1 -> unstable-2020-05-24 #86683
Conversation
Upstream doesn't want this packaged yet. |
bb5e86b
to
d97fee4
Compare
d97fee4
to
4345570
Compare
Updated; the integration tests now run successfully. Marking as ready for review per nicotine-plus/nicotine-plus#99 (comment) :) |
4345570
to
6bdf215
Compare
@GrahamcOfBorg build nicotine-plus |
6bdf215
to
523cee1
Compare
Simplified with @Ericson2314 I guess with gobject-introspection, Python, and |
608034a
to
25681b4
Compare
Bumped upstream commit; it now uses the gobject-introspection libnotify bindings. |
25681b4
to
a1d1998
Compare
Pushed with some cleanups and optimistically enabling |
utillinux is used only for mcookie, which can be replaced with `openssl rand -hex 16`, per https://bugs.freedesktop.org/show_bug.cgi?id=7052.
2907239
to
8282008
Compare
This should hopefully fix the build on Darwin.
f933d80
to
b8834c6
Compare
This now builds on Darwin, though I can't test it. The |
b8834c6
to
458e515
Compare
Updated with new upstream commits, some licensing pedantry, and a fix to the installation code that makes the desktop entry and manual page work. There's now an exception being thrown in the integration tests (that somehow doesn't make them fail?) that I don't fully understand and should investigate further at some point:
But it seems to work fine outside the build. |
@emilazy Some column counts were outdated in the config file. nicotine-plus/nicotine-plus#134 should take care of the issue. |
1eeb74d
to
7596ba7
Compare
7596ba7
to
fe8ca5f
Compare
Includes port to Python 3 and GTK+ 3/PyGObject; see nicotine-plus/nicotine-plus#106 for details. This unstable version identifies itself as 1.4.3, and is planned to be released as 2.0.0 after it has had more fixes and testing through the official upstream PPA. The codebase is old and flaky to begin with, and there have been several unrelated bug fixes in the years since the last stable release, so I think it's worth updating to be able to use non-obsolescent versions of the core dependencies, and have nixos-unstable users help shake out any remaining issues with the port. I verified that searching and downloading seem to work fine. Drop the rename of the executable to `nicotine-plus`, as the test depends on the executable name and there doesn't seem to be any strong reason to diverge from upstream here (the original Nicotine is long dead). This is technically a breaking change, so it might be best to include a symlink at `$out/bin/nicotine-plus` temporarily.
fe8ca5f
to
d4940ee
Compare
Nicotine+ 2.0.0 has been released. |
Nicotine+ 2.0.1 has been released. |
|
||
python27Packages.buildPythonApplication { | ||
python3.pkgs.buildPythonApplication { |
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.
python3.pkgs.buildPythonApplication { | |
python3Packages.buildPythonApplication { |
rev = "4e057d64184885c63488d4213ade3233bd33e67b"; | ||
sha256 = "11j2qm67sszfqq730czsr2zmpgkghsb50556ax1vlpm7rw3gm33c"; | ||
rev = "0f9e4e1c2391196d4070df5851ff48601aceaf7f"; | ||
hash = "sha256-kSDqoxmX9beqL98tMQylbhCZVMmQy6/oVOyW1xnxFLY="; |
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.
hash = "sha256-kSDqoxmX9beqL98tMQylbhCZVMmQy6/oVOyW1xnxFLY="; | |
sha256 = "sha256-kSDqoxmX9beqL98tMQylbhCZVMmQy6/oVOyW1xnxFLY="; |
(GeoIP.override { inherit geoip; }) | ||
]; | ||
|
||
# Insert real docs directory. | ||
# os.getcwd() is not needed | ||
checkInputs = [ python3.pkgs.pytest ] ++ lib.optionals (!stdenv.isDarwin) [ |
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 = [ python3.pkgs.pytest ] ++ lib.optionals (!stdenv.isDarwin) [ | |
checkInputs = [ python3Packages.pytest ] ++ lib.optionals (!stdenv.isDarwin) [ |
# The gtk3 package doesn't enable X11 on Darwin, so we can't | ||
# use xvfb-run. | ||
xvfb_run | ||
python3.pkgs.robotframework |
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.
python3.pkgs.robotframework | |
python3Packages.robotframework |
substituteInPlace ./pynicotine/gtkgui/frame.py \ | ||
--replace "paths.append(os.getcwd())" "paths.append('"$out"/doc')" | ||
# Remove non-free files. | ||
sh debian/nicotine-rm-nonfree |
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.
sh debian/nicotine-rm-nonfree | |
sh debian/nicotine-rm-nonfree |
Please reference bash from nixpkgs.
robot test/integration/nicotine.robot | ||
|
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.
robot test/integration/nicotine.robot | |
robot test/integration/nicotine.robot |
robot test/integration/nicotine.robot | ||
|
||
'' + '' | ||
runHook postInstallCheck | ||
''; | ||
|
||
meta = { |
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.
meta = { | |
meta = lib; { |
lib.licenses.gpl3Plus | ||
# Per sounds/default/license.txt | ||
lib.licenses.cc0 | ||
]; | ||
maintainers = with lib.maintainers; [ klntsky emily ]; | ||
platforms = lib.platforms.unix; |
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.
lib.licenses.gpl3Plus | |
# Per sounds/default/license.txt | |
lib.licenses.cc0 | |
]; | |
maintainers = with lib.maintainers; [ klntsky emily ]; | |
platforms = lib.platforms.unix; | |
licenses.gpl3Plus | |
# Per sounds/default/license.txt | |
licenses.cc0 | |
]; | |
maintainers = with maintainers; [ klntsky emily ]; | |
platforms = platforms.unix; |
|
||
meta = with stdenv.lib; { | ||
meta = { |
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.
meta = { | |
meta = with lib; { |
license = lib.licenses.mit; | ||
maintainers = with lib.maintainers; [ peterhoeg ]; |
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.
license = lib.licenses.mit; | |
maintainers = with lib.maintainers; [ peterhoeg ]; | |
license = licenses.mit; | |
maintainers = ib.maintainers; [ peterhoeg ]; |
I marked this as stale due to inactivity. → More info |
We already have 3.0.6 in master. |
Motivation for this change
Includes port to Python 3 and GTK+ 3/PyGObject; see nicotine-plus/nicotine-plus#106 for details.
This unstable version identifies itself as 1.4.3, and is planned to be released as 2.0.0 after it has had more fixes and testing through the official upstream PPA. The codebase is old and flaky to begin with, and there have been several unrelated bug fixes in the years since the last stable release, so I think it's worth updating to be able to use non-obsolescent versions of the core dependencies, and have nixos-unstable users help shake out any remaining issues with the port. I verified that searching and downloading seem to work fine.
Drop the rename of the executable to
nicotine-plus
, as the test depends on the executable name and there doesn't seem to be any strong reason to diverge from upstream here (the original Nicotine is long dead). This is technically a breaking change, so it might be best to include a symlink at$out/bin/nicotine-plus
temporarily.Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)