2015-09-26 20:01:08 +02:00
|
|
|
{ fetchFromGitHub, stdenv, pythonPackages, gtk3, gobjectIntrospection, libnotify
|
|
|
|
, gst_all_1, wrapGAppsHook }:
|
2015-04-22 04:15:13 +02:00
|
|
|
|
2016-02-19 13:12:11 +01:00
|
|
|
pythonPackages.buildPythonApplication rec {
|
2016-01-27 17:24:23 +01:00
|
|
|
pname = "pithos";
|
|
|
|
version = "1.1.2";
|
|
|
|
name = "${pname}-${version}";
|
2015-04-22 04:15:13 +02:00
|
|
|
|
2015-09-23 14:00:26 +02:00
|
|
|
src = fetchFromGitHub {
|
2016-01-27 17:24:23 +01:00
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
2015-09-23 14:00:26 +02:00
|
|
|
rev = version;
|
2016-01-27 17:24:23 +01:00
|
|
|
sha256 = "0zk9clfawsnwmgjbk7y5d526ksxd1pkh09ln6sb06v4ygaiifcxp";
|
2015-04-22 04:15:13 +02:00
|
|
|
};
|
|
|
|
|
2016-05-28 16:10:06 +02:00
|
|
|
# No tests in repo
|
|
|
|
doCheck = false;
|
|
|
|
|
2015-04-22 04:15:13 +02:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "/usr/share" "$out/share"
|
|
|
|
'';
|
|
|
|
|
2016-03-07 18:33:32 +01:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp -v data/pithos.desktop $out/share/applications
|
|
|
|
'';
|
|
|
|
|
2015-09-26 20:01:08 +02:00
|
|
|
buildInputs = [ wrapGAppsHook ];
|
|
|
|
|
2015-09-23 14:00:26 +02:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[ gtk3 gobjectIntrospection libnotify ] ++
|
|
|
|
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
|
|
|
|
(with pythonPackages; [ pygobject3 pylast ]);
|
2015-04-22 04:15:13 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2015-09-23 14:00:26 +02:00
|
|
|
description = "Pandora Internet Radio player for GNOME";
|
2015-09-26 19:58:01 +02:00
|
|
|
homepage = https://pithos.github.io/;
|
2015-04-22 04:15:13 +02:00
|
|
|
license = licenses.gpl3;
|
2015-09-26 19:56:54 +02:00
|
|
|
maintainers = with maintainers; [ obadz jgeerds ];
|
2015-04-22 04:15:13 +02:00
|
|
|
};
|
|
|
|
}
|