diff options
author | Konrad Borowski <konrad@borowski.pw> | 2021-05-30 21:58:14 +0200 |
---|---|---|
committer | Konrad Borowski <konrad@borowski.pw> | 2021-05-30 21:58:14 +0200 |
commit | fb651e653be9c8ce3e526c420c53226a4f76d91e (patch) | |
tree | f2814b0adc1fea1a501992c213d9794299642504 /pkgs/development/python-modules/py-desmume | |
parent | 4d1125e8a8cd3d13dd9562f9cf751886c8d09c5c (diff) |
python3Packages.py-desmume: init at 0.0.3.post2
Diffstat (limited to 'pkgs/development/python-modules/py-desmume')
-rw-r--r-- | pkgs/development/python-modules/py-desmume/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/py-desmume/default.nix b/pkgs/development/python-modules/py-desmume/default.nix new file mode 100644 index 0000000000000..a249b0aede131 --- /dev/null +++ b/pkgs/development/python-modules/py-desmume/default.nix @@ -0,0 +1,44 @@ +{ lib, buildPythonPackage, fetchFromGitHub, GitPython +, libpcap, meson, ninja, pillow, pkg-config, pygobject3, SDL2 +, alsaLib, soundtouch, openal +}: + +let + desmume = fetchFromGitHub { + owner = "SkyTemple"; + repo = "desmume"; + rev = "8e7af8ada883b7e91344985236f7c7c04ee795d7"; + sha256 = "0svmv2rch9q347gbpbws4agymas8n014gh1ssaf91wx7jwn53842"; + }; +in +buildPythonPackage rec { + pname = "py-desmume"; + version = "0.0.3.post2"; + + src = fetchFromGitHub { + owner = "SkyTemple"; + repo = pname; + rev = version; + sha256 = "1chsg70k8kqnlasn88b04ww3yl0lay1bjxvz6lhp6s2cvsxv03x1"; + }; + + postPatch = '' + cp -R --no-preserve=mode ${desmume} __build_desmume + ''; + + buildInputs = [ GitPython libpcap SDL2 alsaLib 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 ]; + }; +} |