2019-03-09 00:29:48 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, gettext, intltool, wrapGAppsHook
|
2018-12-02 12:41:15 +01:00
|
|
|
, python3Packages, gnome3, gtk3, gobject-introspection}:
|
2016-01-30 11:28:12 +01:00
|
|
|
|
2016-08-16 22:51:21 +02:00
|
|
|
let
|
2018-07-20 21:36:12 +02:00
|
|
|
inherit (python3Packages) buildPythonApplication isPy3k dbus-python pygobject3 mpd2;
|
2016-08-16 22:51:21 +02:00
|
|
|
in buildPythonApplication rec {
|
2018-06-23 15:27:58 +02:00
|
|
|
pname = "sonata";
|
2016-01-30 11:28:12 +01:00
|
|
|
version = "1.7b1";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "multani";
|
|
|
|
repo = "sonata";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1npbxlrg6k154qybfd250nq2p96kxdsdkj9wwnp93gljnii3g8wh";
|
|
|
|
};
|
|
|
|
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2019-03-09 00:29:48 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig gettext ];
|
2016-01-30 11:28:12 +01:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
intltool wrapGAppsHook
|
2019-02-13 22:47:50 +01:00
|
|
|
gnome3.adwaita-icon-theme
|
2018-02-25 03:23:58 +01:00
|
|
|
gnome3.gsettings-desktop-schemas
|
2016-01-30 11:28:12 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Remove "Local MPD" tab which is not suitable for NixOS.
|
|
|
|
sed -i '/localmpd/d' sonata/consts.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2018-12-02 12:41:15 +01:00
|
|
|
gobject-introspection gtk3 pygobject3
|
2016-01-30 11:28:12 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# The optional tagpy dependency (for editing metadata) is not yet
|
|
|
|
# included because it's difficult to build.
|
2016-08-16 22:51:21 +02:00
|
|
|
pythonPath = [ dbus-python pygobject3 mpd2 ];
|
2016-01-30 11:28:12 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An elegant client for the Music Player Daemon";
|
|
|
|
longDescription = ''
|
|
|
|
Sonata is an elegant client for the Music Player Daemon.
|
|
|
|
|
|
|
|
Written in Python and using the GTK+ 3 widget set, its features
|
|
|
|
include:
|
|
|
|
|
|
|
|
- Expanded and collapsed views
|
|
|
|
- Automatic remote and local album art
|
|
|
|
- Library browsing by folders, or by genre/artist/album
|
|
|
|
- User-configurable columns
|
|
|
|
- Automatic fetching of lyrics
|
|
|
|
- Playlist and stream support
|
|
|
|
- Support for editing song tags (not in NixOS version)
|
|
|
|
- Drag and drop to copy files
|
|
|
|
- Popup notification
|
|
|
|
- Library and playlist searching, filter as you type
|
|
|
|
- Audioscrobbler (last.fm) 1.2 support
|
|
|
|
- Multiple MPD profiles
|
|
|
|
- Keyboard friendly
|
|
|
|
- Support for multimedia keys
|
|
|
|
- Commandline control
|
|
|
|
- Available in 24 languages
|
|
|
|
'';
|
2018-12-01 18:32:32 +01:00
|
|
|
homepage = https://www.nongnu.org/sonata/;
|
2016-01-30 11:28:12 +01:00
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.rvl ];
|
|
|
|
};
|
|
|
|
}
|