2020-07-25 15:32:23 +00:00
|
|
|
{ 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";
|
2020-07-27 12:47:09 +00:00
|
|
|
version = "0.11.7";
|
2020-07-25 15:32:23 +00:00
|
|
|
|
|
|
|
src = python3Packages.fetchPypi {
|
|
|
|
inherit pname version;
|
2020-07-27 12:47:09 +00:00
|
|
|
sha256 = "1x6b02gw46gp6qcgv67j7k3gr1dpfczbyma6dxanag8pnpqrj8qi";
|
2020-07-25 15:32:23 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|