2013-07-19 08:30:04 +02:00
|
|
|
{ stdenv, fetchurl, pythonPackages, pygobject, gst_python
|
2013-02-26 19:42:04 +01:00
|
|
|
, gst_plugins_good, gst_plugins_base
|
|
|
|
}:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "mopidy-${version}";
|
|
|
|
|
2013-09-23 17:07:50 +02:00
|
|
|
version = "0.15.0";
|
2013-02-26 19:42:04 +01:00
|
|
|
|
2013-07-19 08:30:04 +02:00
|
|
|
src = fetchurl {
|
2013-07-04 01:21:27 +02:00
|
|
|
url = "https://github.com/mopidy/mopidy/archive/v${version}.tar.gz";
|
2013-09-23 17:07:50 +02:00
|
|
|
sha256 = "1fpnddcx6343wgxzh10s035w21g8jmfh2kzgx32w0xsshpra3gn1";
|
2013-02-26 19:42:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
2013-03-03 20:53:48 +01:00
|
|
|
gst_python pygobject pykka pyspotify pylast cherrypy ws4py
|
2013-02-26 19:42:04 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# python zip complains about old timestamps
|
|
|
|
preConfigure = ''
|
|
|
|
find -print0 | xargs -0 touch
|
|
|
|
'';
|
|
|
|
|
|
|
|
# There are no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
for p in $out/bin/mopidy $out/bin/mopidy-scan; do
|
|
|
|
wrapProgram $p \
|
|
|
|
--prefix GST_PLUGIN_PATH : ${gst_plugins_good}/lib/gstreamer-0.10 \
|
|
|
|
--prefix GST_PLUGIN_PATH : ${gst_plugins_base}/lib/gstreamer-0.10
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.mopidy.com/;
|
|
|
|
description = ''
|
|
|
|
A music server which can play music from Spotify and from your
|
|
|
|
local hard drive.
|
|
|
|
'';
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rickynils ];
|
2013-10-08 11:05:19 +02:00
|
|
|
platforms = [];
|
2013-02-26 19:42:04 +01:00
|
|
|
};
|
|
|
|
}
|