2022-06-16 17:23:12 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, meson, ninja, pkg-config, appstream-glib
|
2021-05-20 23:08:51 +00:00
|
|
|
, wrapGAppsHook, pythonPackages, gtk3, gnome, gobject-introspection
|
2020-04-24 23:36:52 +00:00
|
|
|
, libnotify, libsecret, gst_all_1 }:
|
|
|
|
|
|
|
|
pythonPackages.buildPythonApplication rec {
|
|
|
|
pname = "pithos";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "1.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = pname;
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-cFmsdQXfGxgpKe32dw1lgoANU9Drhu5Mecyz37BVP4g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
'';
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config appstream-glib wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
propagatedNativeBuildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs =
|
2021-05-20 23:08:51 +00:00
|
|
|
[ gtk3 gobject-introspection libnotify libsecret gnome.adwaita-icon-theme ] ++
|
2020-04-24 23:36:52 +00:00
|
|
|
(with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad ]) ++
|
|
|
|
(with pythonPackages; [ pygobject3 pylast ]);
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Pandora Internet Radio player for GNOME";
|
|
|
|
homepage = "https://pithos.github.io/";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ obadz ];
|
|
|
|
};
|
|
|
|
}
|