depot/third_party/nixpkgs/pkgs/by-name/mo/mousam/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

58 lines
1.1 KiB
Nix

{ lib
, python3Packages
, fetchFromGitHub
, meson
, ninja
, pkg-config
, gobject-introspection
, wrapGAppsHook4
, desktop-file-utils
, libadwaita
}:
python3Packages.buildPythonApplication rec {
pname = "mousam";
version = "1.3.2";
# built with meson, not a python format
pyproject = false;
src = fetchFromGitHub {
owner = "amit9838";
repo = "mousam";
rev = "refs/tags/v${version}";
hash = "sha256-1gFuMh5Poypmgyk2bpi9v6iK7WkO5KHLs+WsoDpJPeg=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
gobject-introspection
wrapGAppsHook4
desktop-file-utils
];
buildInputs = [
libadwaita
];
dependencies = with python3Packages; [
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;
};
}