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
mopidy-local: init at 3.1.1 #93400
mopidy-local: init at 3.1.1 #93400
Conversation
CC @rvolosatovs, who is the maintainer of the |
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
Can we remove the other two as well then? I added them initially as a dependency to mopidy-iris
, which does not need them anymore apparently.
Mopidy-Iris does not need them, it works with the newer Mopidy-Local now. I added a commit to delete the older packages. The only thing I wonder, should this be recorded in a changelog somewhere? I can imagine people have these older plugins in their config, and that will break when upgrading. |
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.
Thanks for taking care of this. I've added a few remarks, nothing major.
We should convert the whole mopidy-shebang to python3 shortly, not necessarily in this pr.
checkInputs = [ | ||
python3Packages.pytest | ||
]; |
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 its preferable to use pytestCheckHook
over pytest
.
@@ -21224,8 +21224,7 @@ in | |||
mopidy | |||
mopidy-gmusic | |||
mopidy-iris | |||
mopidy-local-images | |||
mopidy-local-sqlite |
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.
Let's add throw aliases to aliases.nix
explaining the removal and migration steps.
diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix
index 3e9cdc8e87e..634ecc3af0e 100644
--- a/pkgs/top-level/aliases.nix
+++ b/pkgs/top-level/aliases.nix
@@ -301,6 +301,8 @@ mapAliases ({
mcgrid = throw "mcgrid has been removed from nixpkgs, as it's not compatible with rivet 3"; # added 2020-05-23
mcomix = throw "mcomix has been removed from nixpkgs, as it's unmaintained"; # added 2019-12-10
mirage = throw "mirage has been femoved from nixpkgs, as it's unmaintained"; # added 2019-12-10
+ mopidy-local-images = throw "mopidy-local-images has been removed as it's unmaintained. It's functionality has been merged into the mopidy-local extension."; # added 2020-10-18
+ mopidy-local-sqlite = throw "mopidy-local-sqlite has been removed as it's unmaintained. It's functionality has been merged into the mopidy-local extension."; # added 2020-10-18
mysql-client = hiPrio mariadb.client;
memtest86 = memtest86plus; # added 2019-05-08
mesa_noglu = mesa; # added 2019-05-28
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.
Ah, so this is how to deal with removing packages, thanks for pointing that out!
@@ -0,0 +1,30 @@ | |||
{ stdenv |
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.
{ stdenv | |
{ lib |
python3Packages.pytest | ||
]; | ||
|
||
meta = with stdenv.lib; { |
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 = with stdenv.lib; { | |
meta = with lib; { |
homepage = "https://github.com/mopidy/mopidy-local"; | ||
description = "Mopidy extension for playing music from your local music archive"; | ||
license = licenses.asl20; | ||
maintainers = [ maintainers.ruuda ]; |
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.
maintainers = [ maintainers.ruuda ]; | |
maintainers = with maintainers; [ ruuda ]; |
] ++ ( | ||
with pythonPackages; [ |
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.
] ++ ( | |
with pythonPackages; [ | |
] ++ (with pythonPackages; [ |
Thanks for having a look @mweinelt. I addressed your comments and also rebased this PR on top of the latest master. |
Do you have experience on how these plugins interact with each other? I see we mix and match python2 and python3 there. |
This commit should be split in two (local-images and local-sqlite) and use the format described in CONTRIBUTING.md, e.g.
|
Mopidy-Local is the successor to Mopidy-Local-SQLite and Mopidy-Local-Images, which are already packaged. I had to make gobject-introspection a propagated build input, otherwise Mopidy-Local can't import Mopidy.
This plugin has been merged into the newer "mopidy-local" plugin which I just added. "mopidy-local-images" and "mopidy-local-sqlite" were added originally for Mopidy Iris, but Iris now works with mopidy-local, and does not need the older plugins any more.
This plugin has been merged into the newer "mopidy-local" plugin which I just added. "mopidy-local-images" and "mopidy-local-sqlite" were added originally for Mopidy Iris, but Iris now works with mopidy-local, and does not need the older ones any more.
I don’t think we do, the packages reference
And the Python there is set to nixpkgs/pkgs/top-level/all-packages.nix Lines 22111 to 22113 in 396f340
So it’s all running with Python 3.
Done. |
Result of 15 packages built:
|
As the |
Motivation for this change
Mopidy-Local is the successor to Mopidy-Local-SQLite and
Mopidy-Local-Images, which are both already packaged.
Things done
I had to make
gobject-introspection
a propagated build input, otherwise Mopidy imported by Mopidy-Local could not importGst
.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)Tested by building the following:
The
bin/mopidy
in there has amopidy local scan
command that successfully scanned my local collection.