mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 21:03:15 +00:00
59 lines
1.1 KiB
Nix
59 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.2.0";
|
|
# built with meson, not a python format
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "amit9838";
|
|
repo = "mousam";
|
|
rev = "v${version}";
|
|
hash = "sha256-/mOb4Pgdn5DcxwHjlI8L9kKD/Y6a4vROLbsQBb62VXM=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|