2020-02-10 09:14:15 +01:00
|
|
|
{ stdenv, fetchFromGitHub, python3Packages, wrapGAppsHook
|
2018-12-02 12:41:15 +01:00
|
|
|
, gst_all_1, glib-networking, gobject-introspection
|
2013-02-26 19:42:04 +01:00
|
|
|
}:
|
|
|
|
|
2020-02-10 09:14:15 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2018-06-23 15:27:58 +02:00
|
|
|
pname = "mopidy";
|
2020-02-10 09:14:15 +01:00
|
|
|
version = "3.0.1";
|
2013-02-26 19:42:04 +01:00
|
|
|
|
2016-04-12 14:04:16 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mopidy";
|
|
|
|
repo = "mopidy";
|
|
|
|
rev = "v${version}";
|
2020-02-10 09:14:15 +01:00
|
|
|
sha256 = "0fpjprjw143ixak68iwxjpscdjgyb7rsr1cxj7fsdrw6hc83nq4z";
|
2013-02-26 19:42:04 +01:00
|
|
|
};
|
|
|
|
|
2016-04-12 14:04:16 +02:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
|
|
|
|
|
|
|
buildInputs = with gst_all_1; [
|
2017-03-01 11:20:14 +01:00
|
|
|
gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
|
2018-12-02 12:41:15 +01:00
|
|
|
glib-networking gobject-introspection
|
2016-01-07 15:43:09 +01:00
|
|
|
];
|
|
|
|
|
2020-02-10 09:14:15 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2019-09-23 21:55:46 +02:00
|
|
|
gst-python pygobject3 pykka tornado_4 requests setuptools
|
2018-02-23 19:36:52 +01:00
|
|
|
] ++ stdenv.lib.optional (!stdenv.isDarwin) dbus-python;
|
2013-02-26 19:42:04 +01:00
|
|
|
|
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2016-01-07 15:43:09 +01:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH")
|
2013-02-26 19:42:04 +01:00
|
|
|
'';
|
|
|
|
|
2014-07-12 09:33:53 +02:00
|
|
|
meta = with stdenv.lib; {
|
2018-01-05 20:42:46 +01:00
|
|
|
homepage = https://www.mopidy.com/;
|
2013-02-26 19:42:04 +01:00
|
|
|
description = ''
|
2014-07-12 09:33:53 +02:00
|
|
|
An extensible music server that plays music from local disk, Spotify,
|
2014-11-11 14:20:43 +01:00
|
|
|
SoundCloud, Google Play Music, and more
|
2013-02-26 19:42:04 +01:00
|
|
|
'';
|
2014-07-12 09:33:53 +02:00
|
|
|
license = licenses.asl20;
|
2019-08-20 15:24:01 +02:00
|
|
|
maintainers = [ maintainers.fpletz ];
|
2013-11-05 00:04:36 +01:00
|
|
|
hydraPlatforms = [];
|
2013-02-26 19:42:04 +01:00
|
|
|
};
|
|
|
|
}
|