about summary refs log tree commit diff
path: root/pkgs/applications/audio/mousai
diff options
context:
space:
mode:
authorRobert Schütz <dev@schuetz-co.de>2021-04-26 10:04:34 +0200
committerGitHub <noreply@github.com>2021-04-26 10:04:34 +0200
commit0e391039ed045f7d3dc7aa48adf4ad20b3fe759c (patch)
tree0fec9a9b133c0df72a508771b0f1ddaaf4c09aa8 /pkgs/applications/audio/mousai
parentcdddbf59eaef2b80680d888c5dd11056ef40e447 (diff)
mousai: init at 0.3.1 (#120552)
Diffstat (limited to 'pkgs/applications/audio/mousai')
-rw-r--r--pkgs/applications/audio/mousai/default.nix69
1 files changed, 69 insertions, 0 deletions
diff --git a/pkgs/applications/audio/mousai/default.nix b/pkgs/applications/audio/mousai/default.nix
new file mode 100644
index 0000000000000..502842c7aa734
--- /dev/null
+++ b/pkgs/applications/audio/mousai/default.nix
@@ -0,0 +1,69 @@
+{ lib
+, python3
+, fetchFromGitHub
+, appstream-glib
+, desktop-file-utils
+, gettext
+, glib
+, gobject-introspection
+, gst_all_1
+, gtk3
+, libhandy
+, librsvg
+, meson
+, ninja
+, pkg-config
+, wrapGAppsHook
+}:
+
+python3.pkgs.buildPythonApplication rec {
+  pname = "mousai";
+  version = "0.3.1";
+
+  format = "other";
+
+  src = fetchFromGitHub {
+    owner = "SeaDve";
+    repo = "Mousai";
+    rev = "v${version}";
+    sha256 = "0x57dci0prhlj79h74yh79cazn48rn0bckz5j3z4njk4fwc3fvfx";
+  };
+
+  postPatch = ''
+    patchShebangs build-aux/meson
+  '';
+
+  nativeBuildInputs = [
+    appstream-glib
+    desktop-file-utils
+    gettext
+    glib
+    gtk3
+    meson
+    ninja
+    pkg-config
+    wrapGAppsHook
+  ];
+
+  buildInputs = [
+    gobject-introspection
+    gst_all_1.gstreamer
+    gst_all_1.gst-plugins-base
+    gst_all_1.gst-plugins-good
+    gtk3
+    libhandy
+    librsvg
+  ];
+
+  propagatedBuildInputs = with python3.pkgs; [
+    pygobject3
+    requests
+  ];
+
+  meta = with lib; {
+    description = "Identify any songs in seconds";
+    homepage = "https://github.com/SeaDve/Mousai";
+    license = licenses.gpl3Plus;
+    maintainers = with maintainers; [ dotlambda ];
+  };
+}