depot/third_party/nixpkgs/pkgs/development/python-modules/py-desmume/default.nix
Default email a66bca1520 Project import generated by Copybara.
GitOrigin-RevId: 40f79f003b6377bd2f4ed4027dde1f8f922995dd
2022-12-17 11:02:37 +01:00

69 lines
1.1 KiB
Nix

{ lib
, alsa-lib
, buildPythonPackage
, fetchFromGitHub
, gitpython
, libpcap
, meson
, ninja
, openal
, pillow
, pkg-config
, pygobject3
, pythonOlder
, SDL2
, soundtouch
}:
buildPythonPackage rec {
pname = "py-desmume";
version = "0.0.4.post2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "SkyTemple";
repo = pname;
rev = version;
hash = "sha256-a819+K/Ovnz53ViDKpUGGjeblWvrAO5ozt/tizdLKCY=";
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 = with lib; {
description = "Python library to interface with DeSmuME, the Nintendo DS emulator";
homepage = "https://github.com/SkyTemple/py-desmume";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ xfix ];
};
}