nixpkgs/pkgs/by-name/mo/mousam/package.nix
2026-06-14 21:24:37 +10:00

59 lines
1.1 KiB
Nix

{
lib,
python3Packages,
fetchFromGitHub,
meson,
ninja,
pkg-config,
gobject-introspection,
wrapGAppsHook4,
desktop-file-utils,
libadwaita,
}:
python3Packages.buildPythonApplication (finalAttrs: {
pname = "mousam";
version = "2.0.2";
# built with meson, not a python format
pyproject = false;
src = fetchFromGitHub {
owner = "amit9838";
repo = "mousam";
tag = "v${finalAttrs.version}";
hash = "sha256-3x4bi3P8zw+A+MUaBd4ByESrzCEP21Qa9CLaUYGARew=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [
libadwaita
];
dependencies = with python3Packages; [
pygobject3
requests
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = {
description = "Beautiful and lightweight weather app based on Python and GTK4";
homepage = "https://amit9838.github.io/mousam";
license = with lib.licenses; [ gpl3Plus ];
mainProgram = "mousam";
maintainers = with lib.maintainers; [ aleksana ];
platforms = lib.platforms.unix;
};
})