1{ lib
2, alsa-lib
3, buildPythonPackage
4, fetchFromGitHub
5, gitpython
6, libpcap
7, meson
8, ninja
9, openal
10, pillow
11, pkg-config
12, pygobject3
13, pythonOlder
14, SDL2
15, soundtouch
16}:
17
18buildPythonPackage rec {
19 pname = "py-desmume";
20 version = "0.0.5.post0";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "SkyTemple";
27 repo = pname;
28 rev = version;
29 hash = "sha256-q6E7J7e0yXt+jo1KNqqAw2cG/Us+Tw0dLfTqAKWfAlc=";
30 fetchSubmodules = true;
31 };
32
33 nativeBuildInputs = [
34 meson
35 ninja
36 pkg-config
37 ];
38
39 buildInputs = [
40 alsa-lib
41 gitpython
42 libpcap
43 openal
44 SDL2
45 soundtouch
46 ];
47
48 propagatedBuildInputs = [
49 pillow
50 pygobject3
51 ];
52
53 hardeningDisable = [
54 "format"
55 ];
56
57 doCheck = false; # there are no tests
58
59 pythonImportsCheck = [
60 "desmume"
61 ];
62
63 meta = with lib; {
64 description = "Python library to interface with DeSmuME, the Nintendo DS emulator";
65 homepage = "https://github.com/SkyTemple/py-desmume";
66 license = licenses.gpl3Plus;
67 maintainers = with maintainers; [ marius851000 xfix ];
68 };
69}