2021-04-26 10:04:34 +02:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, appstream-glib
|
|
|
|
, desktop-file-utils
|
|
|
|
, gettext
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gst_all_1
|
2021-05-24 12:20:49 +02:00
|
|
|
, gtk4
|
|
|
|
, libadwaita
|
2021-04-26 10:04:34 +02:00
|
|
|
, librsvg
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
|
|
pname = "mousai";
|
2021-07-03 10:48:19 +02:00
|
|
|
version = "0.4.2";
|
2021-04-26 10:04:34 +02:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "SeaDve";
|
|
|
|
repo = "Mousai";
|
|
|
|
rev = "v${version}";
|
2021-07-03 10:48:19 +02:00
|
|
|
sha256 = "sha256-zH++GGFIz3oxkKOYB4zhY6yL3vENEXxtrv8mZZ+41kU=";
|
2021-04-26 10:04:34 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patchShebangs build-aux/meson
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
appstream-glib
|
|
|
|
desktop-file-utils
|
|
|
|
gettext
|
|
|
|
glib
|
2021-05-24 12:20:49 +02:00
|
|
|
gtk4
|
2021-04-26 10:04:34 +02:00
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gobject-introspection
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
2021-05-24 12:20:49 +02:00
|
|
|
gtk4
|
|
|
|
libadwaita
|
2021-04-26 10:04:34 +02:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|