1{ lib, buildPythonApplication, fetchFromGitHub
2, gtk3, wrapGAppsHook, gst_all_1, gobject-introspection
3, python3Packages, gnome }:
4
5buildPythonApplication {
6 pname = "gscrabble";
7 version = "unstable-2020-04-21";
8
9 src = fetchFromGitHub {
10 owner = "RaaH";
11 repo = "gscrabble";
12 rev = "aba37f062a6b183dcc084c453f395af1dc437ec8";
13 sha256 = "sha256-rYpPHgOlPRnlA+Nkvo/J+/8/vl24/Ssk55fTq9oNCz4=";
14 };
15
16 doCheck = false;
17
18 nativeBuildInputs = [ wrapGAppsHook ];
19
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 gobject-introspection
23 ];
24
25 propagatedBuildInputs = with python3Packages; [ gst-python pygobject3 ];
26
27 preFixup = ''
28 gappsWrapperArgs+=(
29 --prefix PYTHONPATH : "$out/share/GScrabble/modules"
30 )
31 '';
32
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 };
44}