mitmproxy: relax some dependencies to fix build (#380668)
[NixPkgs.git] / pkgs / by-name / so / sonata / package.nix
blob2311c8d3ba132bce864fb43009caf7a92a3cb879
2   lib,
3   fetchFromGitHub,
4   wrapGAppsHook3,
5   gettext,
6   python3Packages,
7   adwaita-icon-theme,
8   gtk3,
9   glib,
10   gdk-pixbuf,
11   gsettings-desktop-schemas,
12   gobject-introspection,
15 let
16   inherit (python3Packages)
17     buildPythonApplication
18     isPy3k
19     dbus-python
20     pygobject3
21     mpd2
22     setuptools
23     ;
25 buildPythonApplication rec {
26   pname = "sonata";
27   version = "1.7.0";
29   src = fetchFromGitHub {
30     owner = "multani";
31     repo = "sonata";
32     rev = "v${version}";
33     sha256 = "0rl8w7s2asff626clzfvyz987l2k4ml5dg417mqp9v8a962q0v2x";
34   };
36   disabled = !isPy3k;
38   nativeBuildInputs = [
39     gettext
40     gobject-introspection
41     wrapGAppsHook3
42   ];
44   buildInputs = [
45     glib
46     adwaita-icon-theme
47     gsettings-desktop-schemas
48     gtk3
49     gdk-pixbuf
50   ];
52   # The optional tagpy dependency (for editing metadata) is not yet
53   # included because it's difficult to build.
54   pythonPath = [
55     dbus-python
56     mpd2
57     pygobject3
58     setuptools
59   ];
61   postPatch = ''
62     # Remove "Local MPD" tab which is not suitable for NixOS.
63     sed -i '/localmpd/d' sonata/consts.py
64   '';
66   meta = {
67     description = "Elegant client for the Music Player Daemon";
68     mainProgram = "sonata";
69     longDescription = ''
70       Sonata is an elegant client for the Music Player Daemon.
72       Written in Python and using the GTK 3 widget set, its features
73       include:
75        - Expanded and collapsed views
76        - Automatic remote and local album art
77        - Library browsing by folders, or by genre/artist/album
78        - User-configurable columns
79        - Automatic fetching of lyrics
80        - Playlist and stream support
81        - Support for editing song tags (not in NixOS version)
82        - Drag and drop to copy files
83        - Popup notification
84        - Library and playlist searching, filter as you type
85        - Audioscrobbler (last.fm) 1.2 support
86        - Multiple MPD profiles
87        - Keyboard friendly
88        - Support for multimedia keys
89        - Commandline control
90        - Available in 24 languages
91     '';
92     homepage = "https://www.nongnu.org/sonata/";
93     license = lib.licenses.gpl3;
94     platforms = lib.platforms.linux;
95   };