From baf64804e72e373004a21136f63e0bac39fd235d Mon Sep 17 00:00:00 2001 From: jakeisnt Date: Wed, 30 Dec 2020 12:59:51 -0800 Subject: [PATCH 1/3] maintainers: add jakeisnt Sort jakeisnt in maintainer list maintainers: add jakeisnt --- maintainers/maintainer-list.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 5ce46ff64365..dd6afb408531 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3923,6 +3923,12 @@ githubId = 2179419; name = "Arseniy Seroka"; }; + jakeisnt = { + name = "Jacob Chvatal"; + email = "jake@isnt.online"; + github = "jakeisnt"; + githubId = 29869612; + }; jakelogemann = { email = "jake.logemann@gmail.com"; github = "jakelogemann"; From 657c280e483214939245aef90fbb999f6b5bdbe3 Mon Sep 17 00:00:00 2001 From: jakeisnt Date: Thu, 31 Dec 2020 15:19:56 -0800 Subject: [PATCH 2/3] mopidy: sort package declarations --- pkgs/applications/audio/mopidy/default.nix | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/audio/mopidy/default.nix b/pkgs/applications/audio/mopidy/default.nix index fc532482cba4..b7e6b8c19c0c 100644 --- a/pkgs/applications/audio/mopidy/default.nix +++ b/pkgs/applications/audio/mopidy/default.nix @@ -14,9 +14,9 @@ let mopidy-gmusic = callPackage ./gmusic.nix { }; - mopidy-local = callPackage ./local.nix { }; + mopidy-iris = callPackage ./iris.nix { }; - mopidy-spotify = callPackage ./spotify.nix { }; + mopidy-local = callPackage ./local.nix { }; mopidy-moped = callPackage ./moped.nix { }; @@ -26,20 +26,19 @@ let mopidy-mpris = callPackage ./mpris.nix { }; + mopidy-musicbox-webclient = callPackage ./musicbox-webclient.nix { }; + mopidy-somafm = callPackage ./somafm.nix { }; - mopidy-spotify-tunigo = callPackage ./spotify-tunigo.nix { }; - - mopidy-youtube = callPackage ./youtube.nix { }; - mopidy-soundcloud = callPackage ./soundcloud.nix { }; - mopidy-musicbox-webclient = callPackage ./musicbox-webclient.nix { }; + mopidy-spotify = callPackage ./spotify.nix { }; - mopidy-iris = callPackage ./iris.nix { }; + mopidy-spotify-tunigo = callPackage ./spotify-tunigo.nix { }; mopidy-tunein = callPackage ./tunein.nix { }; + mopidy-youtube = callPackage ./youtube.nix { }; }; in self From c3920418a566cfeb041622be2242b6fbd40e58eb Mon Sep 17 00:00:00 2001 From: jakeisnt Date: Thu, 31 Dec 2020 16:53:38 -0800 Subject: [PATCH 3/3] mopidy-scrobbler: init at 2.0.1 --- pkgs/applications/audio/mopidy/default.nix | 2 ++ pkgs/applications/audio/mopidy/scrobbler.nix | 24 ++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 3 files changed, 27 insertions(+) create mode 100644 pkgs/applications/audio/mopidy/scrobbler.nix diff --git a/pkgs/applications/audio/mopidy/default.nix b/pkgs/applications/audio/mopidy/default.nix index b7e6b8c19c0c..f4d4e416de40 100644 --- a/pkgs/applications/audio/mopidy/default.nix +++ b/pkgs/applications/audio/mopidy/default.nix @@ -28,6 +28,8 @@ let mopidy-musicbox-webclient = callPackage ./musicbox-webclient.nix { }; + mopidy-scrobbler = callPackage ./scrobbler.nix { }; + mopidy-somafm = callPackage ./somafm.nix { }; mopidy-soundcloud = callPackage ./soundcloud.nix { }; diff --git a/pkgs/applications/audio/mopidy/scrobbler.nix b/pkgs/applications/audio/mopidy/scrobbler.nix new file mode 100644 index 000000000000..19c5a29c8a47 --- /dev/null +++ b/pkgs/applications/audio/mopidy/scrobbler.nix @@ -0,0 +1,24 @@ +{ stdenv, python3Packages, mopidy }: + +python3Packages.buildPythonApplication rec { + pname = "Mopidy-Scrobbler"; + version = "2.0.1"; + + src = python3Packages.fetchPypi { + inherit pname version; + sha256 = "11vxgax4xgkggnq4fr1rh2rcvzspkkimck5p3h4phdj3qpnj0680"; + }; + + propagatedBuildInputs = with python3Packages; [ mopidy pylast ]; + + # no tests implemented + doCheck = false; + pythonImportsCheck = [ "mopidy_scrobbler" ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/mopidy/mopidy-scrobbler"; + description = "Mopidy extension for scrobbling played tracks to Last.fm."; + license = licenses.asl20; + maintainers = with maintainers; [ jakeisnt ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d7c9bf7f5370..e85d7fb78d5b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22913,6 +22913,7 @@ in mopidy-mpd mopidy-mpris mopidy-musicbox-webclient + mopidy-scrobbler mopidy-somafm mopidy-soundcloud mopidy-spotify