git.iko.soy/typeable/nixpkgs
on master help sign in
sublime-music: init at 0.11.0
commitddcb7637bd5c975bbee8474e2d6596ebf5cda796 authoralbakham <dev@geber.ga> dateSat 25 Jul 2020, 19:32 (6 years ago) parent3dd951c
2 files changed+62
pkgs/applications/audio/sublime-music/default.nix+60 pkgs/top-level/all-packages.nix+2
pkgs/applications/audio/sublime-music/default.nixnew file+60
@@ -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+}
pkgs/top-level/all-packages.nix+2
@@ -22486,6 +22486,8 @@ in
2248622486 pythonBindings = true;
2248722487 });
2248822488
22489+ sublime-music = callPackage ../applications/audio/sublime-music { };
22490+
2248922491 subunit = callPackage ../development/libraries/subunit { };
2249022492
2249122493 surf = callPackage ../applications/networking/browsers/surf { gtk = gtk2; };