Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ lib, python3Packages, gobject-introspection, gtk3, pango, wrapGAppsHook | ||
|
||
, chromecastSupport ? false | ||
, serverSupport ? false | ||
, keyringSupport ? true | ||
, notifySupport ? true, libnotify | ||
, networkSupport ? true, networkmanager | ||
}: | ||
|
||
python3Packages.buildPythonApplication rec { | ||
pname = "sublime-music"; | ||
version = "0.11.0"; | ||
|
||
src = python3Packages.fetchPypi { | ||
inherit pname version; | ||
sha256 = "1rnjc8pjfaq67mq10gy939g77azc80lxf77s9nsaxds4q5j1yrl2"; | ||
}; | ||
|
||
nativeBuildInputs = [ | ||
gobject-introspection | ||
python3Packages.setuptools | ||
wrapGAppsHook | ||
]; | ||
|
||
buildInputs = [ | ||
gtk3 | ||
pango | ||
] | ||
++ lib.optional notifySupport libnotify | ||
++ lib.optional networkSupport networkmanager | ||
; | ||
|
||
propagatedBuildInputs = with python3Packages; [ | ||
dataclasses-json | ||
deepdiff | ||
fuzzywuzzy | ||
mpv | ||
peewee | ||
pygobject3 | ||
python-Levenshtein | ||
python-dateutil | ||
requests | ||
semver | ||
] | ||
++ lib.optional chromecastSupport PyChromecast | ||
++ lib.optional keyringSupport keyring | ||
++ lib.optional serverSupport bottle | ||
; | ||
|
||
# hook for gobject-introspection doesn't like strictDeps | ||
# https://github.com/NixOS/nixpkgs/issues/56943 | ||
strictDeps = false; | ||
|
||
meta = with lib; { | ||
description = "GTK3 Subsonic/Airsonic client"; | ||
homepage = "https://sublimemusic.app/"; | ||
license = licenses.gpl3Plus; | ||
maintainers = with maintainers; [ albakham ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters