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-06-05 15:53:02 +00:00
|
|
|
version = "1.2.0";
|
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";
|
|
|
|
rev = "v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-/mOb4Pgdn5DcxwHjlI8L9kKD/Y6a4vROLbsQBb62VXM=";
|
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;
|
|
|
|
};
|
|
|
|
}
|