From 4ec3d42741610fba3a3b6dc4a6b1e647e8eefcf4 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 24 Jan 2022 09:12:38 +0800 Subject: [PATCH] mopidy-funkwhale: init at 1.0 --- pkgs/default.nix | 1 + pkgs/mopidy-funkwhale.nix | 38 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 pkgs/mopidy-funkwhale.nix diff --git a/pkgs/default.nix b/pkgs/default.nix index bd461f2d..57c8abd8 100644 --- a/pkgs/default.nix +++ b/pkgs/default.nix @@ -45,6 +45,7 @@ let junction = callPackage ./junction.nix { }; libcs50 = callPackage ./libcs50.nix { }; mopidy-beets = callPackage ./mopidy-beets.nix { }; + mopidy-funkwhale = callPackage ./mopidy-funkwhale.nix { }; mopidy-internetarchive = callPackage ./mopidy-internetarchive.nix { }; pop-launcher = callPackage ./pop-launcher.nix { }; pop-launcher-plugin-duckduckgo-bangs = diff --git a/pkgs/mopidy-funkwhale.nix b/pkgs/mopidy-funkwhale.nix new file mode 100644 index 00000000..779b79ac --- /dev/null +++ b/pkgs/mopidy-funkwhale.nix @@ -0,0 +1,38 @@ + +{ lib, fetchgit, python3, mopidy }: + +python3.pkgs.buildPythonApplication rec { + pname = "mopidy-funkwhale"; + version = "1.0"; + + src = fetchgit { + url = "https://dev.funkwhale.audio/funkwhale/mopidy.git"; + rev = "v${version}"; + sha256 = "sha256-Sr6isp3Eh+XbTXh2zSiB0/UoAShQX6ZWgLQoRMvsung="; + }; + + postPatch = '' + sed -i 's/vext/pykka/' setup.cfg + ''; + + propagatedBuildInputs = with python3.pkgs; [ + pykka + requests + requests_oauthlib + pygobject3 + ] ++ [ mopidy ]; + + checkInputs = with python3.pkgs; [ + pytest + pytest-cov + pytest-mock + requests-mock + factory_boy + ]; + + meta = with lib; { + description = "Mopidy extension for streaming music from a Funkwhale server"; + homepage = "https://funkwhale.audio"; + license = licenses.gpl3Plus; + }; +}