@@ -0,0 +1,60 @@
1+{ lib, python3Packages, gobject-introspection, gtk3, pango, wrapGAppsHook
2+
3+, chromecastSupport ? false
4+, serverSupport ? false
5+, keyringSupport ? true
6+, notifySupport ? true, libnotify
7+, networkSupport ? true, networkmanager
8+}:
9+
10+python3Packages.buildPythonApplication rec {
11+ pname = "sublime-music";
12+ version = "0.11.0";
13+
14+ src = python3Packages.fetchPypi {
15+ inherit pname version;
16+ sha256 = "1rnjc8pjfaq67mq10gy939g77azc80lxf77s9nsaxds4q5j1yrl2";
17+ };
18+
19+ nativeBuildInputs = [
20+ gobject-introspection
21+ python3Packages.setuptools
22+ wrapGAppsHook
23+ ];
24+
25+ buildInputs = [
26+ gtk3
27+ pango
28+ ]
29+ ++ lib.optional notifySupport libnotify
30+ ++ lib.optional networkSupport networkmanager
31+ ;
32+
33+ propagatedBuildInputs = with python3Packages; [
34+ dataclasses-json
35+ deepdiff
36+ fuzzywuzzy
37+ mpv
38+ peewee
39+ pygobject3
40+ python-Levenshtein
41+ python-dateutil
42+ requests
43+ semver
44+ ]
45+ ++ lib.optional chromecastSupport PyChromecast
46+ ++ lib.optional keyringSupport keyring
47+ ++ lib.optional serverSupport bottle
48+ ;
49+
50+ # hook for gobject-introspection doesn't like strictDeps
51+ # https://github.com/NixOS/nixpkgs/issues/56943
52+ strictDeps = false;
53+
54+ meta = with lib; {
55+ description = "GTK3 Subsonic/Airsonic client";
56+ homepage = "https://sublimemusic.app/";
57+ license = licenses.gpl3Plus;
58+ maintainers = with maintainers; [ albakham ];
59+ };
60+}