at 23.05-pre 33 lines 957 B view raw
1{ lib, buildPythonPackage, fetchFromGitHub, GitPython 2, libpcap, meson, ninja, pillow, pkg-config, pygobject3, SDL2 3, alsa-lib, soundtouch, openal 4}: 5 6buildPythonPackage rec { 7 pname = "py-desmume"; 8 version = "0.0.4.post2"; 9 10 src = fetchFromGitHub { 11 owner = "SkyTemple"; 12 repo = pname; 13 rev = version; 14 sha256 = "sha256-a819+K/Ovnz53ViDKpUGGjeblWvrAO5ozt/tizdLKCY="; 15 fetchSubmodules = true; 16 }; 17 18 buildInputs = [ GitPython libpcap SDL2 alsa-lib soundtouch openal ]; 19 nativeBuildInputs = [ meson ninja pkg-config ]; 20 propagatedBuildInputs = [ pillow pygobject3 ]; 21 22 hardeningDisable = [ "format" ]; 23 24 doCheck = false; # there are no tests 25 pythonImportsCheck = [ "desmume" ]; 26 27 meta = with lib; { 28 homepage = "https://github.com/SkyTemple/py-desmume"; 29 description = "Python library to interface with DeSmuME, the Nintendo DS emulator"; 30 license = licenses.gpl3Plus; 31 maintainers = with maintainers; [ xfix ]; 32 }; 33}