about summary refs log tree commit diff
path: root/pkgs/development/python-modules/py-desmume/default.nix
blob: 0c700151f694e93968bf376da1f4ba5af65d3969 (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
{ lib, buildPythonPackage, fetchFromGitHub, GitPython
, libpcap, meson, ninja, pillow, pkg-config, pygobject3, SDL2
, alsa-lib, soundtouch, openal
}:

buildPythonPackage rec {
  pname = "py-desmume";
  version = "0.0.4.post2";

  src = fetchFromGitHub {
    owner = "SkyTemple";
    repo = pname;
    rev = version;
    sha256 = "sha256-a819+K/Ovnz53ViDKpUGGjeblWvrAO5ozt/tizdLKCY=";
    fetchSubmodules = true;
  };

  buildInputs = [ GitPython libpcap SDL2 alsa-lib soundtouch openal ];
  nativeBuildInputs = [ meson ninja pkg-config ];
  propagatedBuildInputs = [ pillow pygobject3 ];

  hardeningDisable = [ "format" ];

  doCheck = false; # there are no tests
  pythonImportsCheck = [ "desmume" ];

  meta = with lib; {
    homepage = "https://github.com/SkyTemple/py-desmume";
    description = "Python library to interface with DeSmuME, the Nintendo DS emulator";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ xfix ];
  };
}