about summary refs log tree commit diff
path: root/pkgs/games/gshogi/default.nix
blob: 350ab86aa22b345a9e70e32812a176ddf61d51f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, fetchFromGitHub
, gobject-introspection
, gtk3
, python3
, wrapGAppsHook
}:

python3.pkgs.buildPythonApplication rec {
  pname = "gshogi";
  version = "0.5.1";

  src = fetchFromGitHub {
    owner = "johncheetham";
    repo = "gshogi";
    rev = "v${version}";
    hash = "sha256-EPOIYPSFAhilxuZeYfuZ4Cd29ReJs/E4KNF5/lyzbxs=";
  };

  doCheck = false;  # no tests available

  buildInputs = [
    gtk3
  ];

  nativeBuildInputs = [ wrapGAppsHook gobject-introspection ];

  propagatedBuildInputs = with python3.pkgs; [
    pygobject3
    pycairo
  ];

  meta = with lib; {
    homepage = "http://johncheetham.com/projects/gshogi/";
    description = "A graphical implementation of the Shogi board game, also known as Japanese Chess";
    mainProgram = "gshogi";
    license = licenses.gpl3Plus;
    platforms = platforms.linux;
    maintainers = [ maintainers.ciil ];
  };
}