about summary refs log tree commit diff
path: root/pkgs/applications/audio/picard
diff options
context:
space:
mode:
authorPavel Sobolev <paveloom@riseup.net>2023-09-12 10:57:27 +0300
committerEmery Hemingway <ehmry@posteo.net>2023-09-15 10:12:44 +0200
commit294422fed551cb14510e0e89ad0e4148c7aabddb (patch)
treeca84c825ca3c4c8bbc969ded2deade75a4cc01fc /pkgs/applications/audio/picard
parent295a5e1e2bacd6e246db8b2bb35d2a9415883224 (diff)
picard: refactor
Diffstat (limited to 'pkgs/applications/audio/picard')
-rw-r--r--pkgs/applications/audio/picard/default.nix18
1 files changed, 10 insertions, 8 deletions
diff --git a/pkgs/applications/audio/picard/default.nix b/pkgs/applications/audio/picard/default.nix
index a9eab5835db4e..c26f3b1214d09 100644
--- a/pkgs/applications/audio/picard/default.nix
+++ b/pkgs/applications/audio/picard/default.nix
@@ -1,9 +1,11 @@
 { lib
 , python3Packages
 , fetchFromGitHub
-, gettext
+
 , chromaprint
+, gettext
 , qt5
+
 , enablePlayback ? true
 , gst_all_1
 }:
@@ -20,6 +22,7 @@ in
 pythonPackages.buildPythonApplication rec {
   pname = "picard";
   version = "2.9.1";
+  format = "setuptools";
 
   src = fetchFromGitHub {
     owner = "metabrainz";
@@ -48,13 +51,13 @@ pythonPackages.buildPythonApplication rec {
 
   propagatedBuildInputs = with pythonPackages; [
     chromaprint
-    python-dateutil
     discid
     fasteners
-    mutagen
-    pyqt5
     markdown
+    mutagen
     pyjwt
+    pyqt5
+    python-dateutil
     pyyaml
   ];
 
@@ -67,14 +70,13 @@ pythonPackages.buildPythonApplication rec {
   # In order to spare double wrapping, we use:
   preFixup = ''
     makeWrapperArgs+=("''${qtWrapperArgs[@]}")
-  ''
-  + lib.optionalString (pyqt5.multimediaEnabled) ''
+  '' + lib.optionalString (pyqt5.multimediaEnabled) ''
     makeWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
   '';
 
   meta = with lib; {
-    homepage = "https://picard.musicbrainz.org/";
-    changelog = "https://picard.musicbrainz.org/changelog/";
+    homepage = "https://picard.musicbrainz.org";
+    changelog = "https://picard.musicbrainz.org/changelog";
     description = "The official MusicBrainz tagger";
     maintainers = with maintainers; [ ehmry paveloom ];
     license = licenses.gpl2Plus;