nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 python3Packages,
4 fetchFromGitHub,
5 meson,
6 ninja,
7 pkg-config,
8 gobject-introspection,
9 wrapGAppsHook4,
10 desktop-file-utils,
11 libadwaita,
12}:
13
14python3Packages.buildPythonApplication rec {
15 pname = "mousam";
16 version = "1.4.2";
17 # built with meson, not a python format
18 pyproject = false;
19
20 src = fetchFromGitHub {
21 owner = "amit9838";
22 repo = "mousam";
23 tag = "v${version}";
24 hash = "sha256-V2R5XfkuaJ4fjgOhoTNZVk4FqKlCJqum7A2NsPISgM8=";
25 };
26
27 nativeBuildInputs = [
28 meson
29 ninja
30 pkg-config
31 gobject-introspection
32 wrapGAppsHook4
33 desktop-file-utils
34 ];
35
36 buildInputs = [
37 libadwaita
38 ];
39
40 dependencies = with python3Packages; [
41 pygobject3
42 requests
43 ];
44
45 dontWrapGApps = true;
46
47 preFixup = ''
48 makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
49 '';
50
51 meta = {
52 description = "Beautiful and lightweight weather app based on Python and GTK4";
53 homepage = "https://amit9838.github.io/mousam";
54 license = with lib.licenses; [ gpl3Plus ];
55 mainProgram = "mousam";
56 maintainers = with lib.maintainers; [ aleksana ];
57 platforms = lib.platforms.unix;
58 };
59}