From 75468c3907a7cda848f2ee48bdf5c1322a73f4b1 Mon Sep 17 00:00:00 2001 From: 031d7e3e-4476-4fef-a076-26150f8ecc2f <83497716+031d7e3e-4476-4fef-a076-26150f8ecc2f@users.noreply.github.com> Date: Sat, 1 May 2021 08:05:39 -0400 Subject: [PATCH] mopidy-podcast: init at 3.0.0 Mopidy extension for browsing and playing podcasts Update maintainer + add py3 tests --- pkgs/applications/audio/mopidy/default.nix | 2 ++ pkgs/applications/audio/mopidy/podcast.nix | 31 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 3 files changed, 34 insertions(+) create mode 100644 pkgs/applications/audio/mopidy/podcast.nix diff --git a/pkgs/applications/audio/mopidy/default.nix b/pkgs/applications/audio/mopidy/default.nix index 0acc1545a8d0..0deecaec7ff6 100644 --- a/pkgs/applications/audio/mopidy/default.nix +++ b/pkgs/applications/audio/mopidy/default.nix @@ -21,6 +21,8 @@ lib.makeScope newScope (self: with self; { mopidy-musicbox-webclient = callPackage ./musicbox-webclient.nix { }; + mopidy-podcast = callPackage ./podcast.nix { }; + mopidy-scrobbler = callPackage ./scrobbler.nix { }; mopidy-somafm = callPackage ./somafm.nix { }; diff --git a/pkgs/applications/audio/mopidy/podcast.nix b/pkgs/applications/audio/mopidy/podcast.nix new file mode 100644 index 000000000000..8a5c4ec2b3d6 --- /dev/null +++ b/pkgs/applications/audio/mopidy/podcast.nix @@ -0,0 +1,31 @@ +{ lib, python3Packages, mopidy }: + +python3Packages.buildPythonApplication rec { + pname = "mopidy-podcast"; + version = "3.0.0"; + + src = python3Packages.fetchPypi { + inherit version; + pname = "Mopidy-Podcast"; + sha256 = "1z2b523yvdpcf8p7m7kczrvaw045lmxzhq4qj00dflxa2yw61qxr"; + }; + + propagatedBuildInputs = [ + mopidy + python3Packages.cachetools + python3Packages.uritools + ]; + + checkInputs = with python3Packages; [ + pytestCheckHook + ]; + + meta = with lib; { + homepage = "https://github.com/tkem/mopidy-podcast"; + description = "Mopidy extension for browsing and playing podcasts"; + license = licenses.asl20; + maintainers = [ + maintainers.daneads + ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index cd038c72939f..56d9b452f358 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -24705,6 +24705,7 @@ in mopidy-mpd mopidy-mpris mopidy-musicbox-webclient + mopidy-podcast mopidy-scrobbler mopidy-somafm mopidy-soundcloud