k3s: format with nixfmt-rfc-style
[NixPkgs.git] / pkgs / games / gscrabble / default.nix
blob453cbfedba949a9f1ff551ac01c8184280bb0ed8
1 { lib, buildPythonApplication, fetchFromGitHub
2 , gtk3, wrapGAppsHook3, gst_all_1, gobject-introspection
3 , python3Packages, gnome }:
5 buildPythonApplication {
6   pname = "gscrabble";
7   version = "unstable-2020-04-21";
9   src = fetchFromGitHub {
10     owner = "RaaH";
11     repo = "gscrabble";
12     rev = "aba37f062a6b183dcc084c453f395af1dc437ec8";
13     sha256 = "sha256-rYpPHgOlPRnlA+Nkvo/J+/8/vl24/Ssk55fTq9oNCz4=";
14   };
16   doCheck = false;
18   nativeBuildInputs = [ wrapGAppsHook3 gobject-introspection ];
20   buildInputs = with gst_all_1; [
21     gst-plugins-base gst-plugins-good gst-plugins-ugly gst-plugins-bad
22     gnome.adwaita-icon-theme gtk3
23   ];
25   propagatedBuildInputs = with python3Packages; [ gst-python pygobject3 ];
27   preFixup = ''
28     gappsWrapperArgs+=(
29       --prefix PYTHONPATH : "$out/share/GScrabble/modules"
30       )
31   '';
33   meta = with lib; {
34     # Fails to build, propably incompatible with latest Python
35     # error: Multiple top-level packages discovered in a flat-layout
36     # https://github.com/RaaH/gscrabble/issues/13
37     broken = true;
38     description = "Golden Scrabble crossword puzzle game";
39     homepage = "https://github.com/RaaH/gscrabble/";
40     license = licenses.gpl2Plus;
41     platforms = platforms.linux;
42     maintainers = with maintainers; [ onny ];
43   };