2024-04-21 15:54:59 +00:00
|
|
|
{ lib
|
|
|
|
, python3Packages
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, gobject-introspection
|
|
|
|
, wrapGAppsHook4
|
|
|
|
, desktop-file-utils
|
|
|
|
, libadwaita
|
|
|
|
}:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
|
|
pname = "mousam";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.3.2";
|
2024-04-21 15:54:59 +00:00
|
|
|
# built with meson, not a python format
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = false;
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "amit9838";
|
|
|
|
repo = "mousam";
|
2024-06-20 14:57:18 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-1gFuMh5Poypmgyk2bpi9v6iK7WkO5KHLs+WsoDpJPeg=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook4
|
|
|
|
desktop-file-utils
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
libadwaita
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
dependencies = with python3Packages; [
|
2024-04-21 15:54:59 +00:00
|
|
|
pygobject3
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
dontWrapGApps = true;
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Beautiful and lightweight weather app based on Python and GTK4";
|
|
|
|
homepage = "https://amit9838.github.io/mousam";
|
|
|
|
license = with licenses; [ gpl3Plus ];
|
|
|
|
mainProgram = "mousam";
|
|
|
|
maintainers = with maintainers; [ aleksana ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|