1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{
stdenv,
lib,
fetchFromGitHub,
meson,
ninja,
pkg-config,
appstream-glib,
glib,
wrapGAppsHook3,
python3Packages,
gtk3,
adwaita-icon-theme,
gobject-introspection,
libnotify,
libsecret,
gst_all_1,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "pithos";
version = "1.6.2";
src = fetchFromGitHub {
owner = "pithos";
repo = "pithos";
tag = finalAttrs.version;
hash = "sha256-3j6IoMi30BQ8WHK4BxbsW+/3XZx7rBFd47EBENa2GiQ=";
};
pyproject = false;
postPatch = ''
chmod +x meson_post_install.py
patchShebangs meson_post_install.py
'';
nativeBuildInputs = [
meson
ninja
pkg-config
appstream-glib
wrapGAppsHook3
gobject-introspection
];
buildInputs = [
gtk3
libnotify
libsecret
glib
]
++ (with gst_all_1; [
gstreamer
gst-plugins-base
gst-plugins-good
gst-plugins-ugly
gst-plugins-bad
]);
propagatedBuildInputs = [
adwaita-icon-theme
]
++ (with python3Packages; [
pygobject3
pylast
]);
meta = {
broken = stdenv.hostPlatform.isDarwin;
description = "Pandora Internet Radio player for GNOME";
mainProgram = "pithos";
homepage = "https://pithos.github.io/";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ obadz ];
};
})
|