summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/py-desmume/default.nix
blob: ac3763f9722700a2a7873097087881763206e2a5 (plain)
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
{
  lib,
  alsa-lib,
  buildPythonPackage,
  fetchFromGitHub,
  gitpython,
  libpcap,
  meson,
  ninja,
  openal,
  pillow,
  pkg-config,
  pygobject3,
  SDL2,
  soundtouch,
}:

buildPythonPackage rec {
  pname = "py-desmume";
  version = "0.0.7";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "SkyTemple";
    repo = "py-desmume";
    tag = version;
    hash = "sha256-aH7f/BI89VLUGqwA8Y7ThSpmKxWffYRETT/+EjPVTg8=";
    fetchSubmodules = true;
  };

  nativeBuildInputs = [
    meson
    ninja
    pkg-config
  ];

  buildInputs = [
    alsa-lib
    gitpython
    libpcap
    openal
    SDL2
    soundtouch
  ];

  propagatedBuildInputs = [
    pillow
    pygobject3
  ];

  hardeningDisable = [ "format" ];

  doCheck = false; # there are no tests

  pythonImportsCheck = [ "desmume" ];

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