at 22.05-pre 53 lines 1.3 kB view raw
1{ lib, fetchFromGitHub 2, python3Packages 3, gdk-pixbuf, glib, gobject-introspection, gtk3 4, libnotify 5, intltool 6, wrapGAppsHook }: 7 8python3Packages.buildPythonApplication rec { 9 pname = "mpdevil"; 10 version = "1.4.1"; 11 12 src = fetchFromGitHub { 13 owner = "SoongNoonien"; 14 repo = pname; 15 rev = "v${version}"; 16 sha256 = "1a5nhlbgi3ahnkcq16c2vgiaghgswy5lxg64pcrlbqssg1pj5gma"; 17 }; 18 19 nativeBuildInputs = [ 20 glib.dev gobject-introspection gtk3 intltool wrapGAppsHook 21 ]; 22 23 buildInputs = [ 24 gdk-pixbuf glib libnotify 25 ]; 26 27 propagatedBuildInputs = with python3Packages; [ 28 beautifulsoup4 distutils_extra mpd2 notify-py pygobject3 requests 29 ]; 30 31 postInstall = '' 32 glib-compile-schemas $out/share/glib-2.0/schemas 33 ''; 34 35 preFixup = '' 36 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 37 ''; 38 39 # Prevent double wrapping. 40 dontWrapGApps = true; 41 # Otherwise wrapGAppsHook do not pick up the dependencies correctly. 42 strictDeps = false; 43 # There aren't any checks. 44 doCheck = false; 45 46 meta = with lib; { 47 description = "A simple music browser for MPD"; 48 homepage = "https://github.com/SoongNoonien/mpdevil"; 49 license = licenses.gpl3Plus; 50 platforms = platforms.linux; 51 maintainers = with maintainers; [ bloomvdomino ]; 52 }; 53}