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