diff --git a/pkgs/default.nix b/pkgs/default.nix index 84b77efa..6be92c1b 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -33,6 +33,7 @@ lib.makeScope pkgs.newScope (self: { mopidy-beets = callPackage ./mopidy-beets.nix { }; mopidy-funkwhale = callPackage ./mopidy-funkwhale.nix { }; mopidy-internetarchive = callPackage ./mopidy-internetarchive.nix { }; + mopidy-listenbrainz = callPackage ./mopidy-listenbrainz { }; nautilus-annotations = callPackage ./nautilus-annotations { }; pop-launcher-plugin-brightness = callPackage ./pop-launcher-plugin-brightness { }; pop-launcher-plugin-duckduckgo-bangs = diff --git a/pkgs/mopidy-listenbrainz/default.nix b/pkgs/mopidy-listenbrainz/default.nix new file mode 100644 index 00000000..db9a718d --- /dev/null +++ b/pkgs/mopidy-listenbrainz/default.nix @@ -0,0 +1,25 @@ +{ lib, fetchFromGitHub, python3, mopidy }: + +python3.pkgs.buildPythonApplication rec { + pname = "mopidy-listenbrainz"; + version = "0.3.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "suaviloquence"; + repo = "mopidy-listenbrainz"; + rev = "v${version}"; + hash = "sha256-kYZgG2KQMTxMR8tdwwCKkfexDcxcndXG9LSdlnoN/CY="; + }; + + propagatedBuildInputs = with python3.pkgs; + [ pykka musicbrainzngs ] ++ [ mopidy ]; + + meta = with lib; { + description = + "Mopidy extension for getting recommendations with Listenbrainz"; + homepage = "https://github.com/suaviloquence/mopidy-listenbrainz"; + license = licenses.apsl20; + platforms = mopidy.meta.platforms; + }; +}