python3Packages.pygame: enable test suite (#131011)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
d1aa855491
commit
d6e025edd1
|
@ -1,5 +1,6 @@
|
||||||
{ lib, fetchPypi, buildPythonPackage, python, pkg-config, libX11
|
{ lib, fetchPypi, buildPythonPackage, python, pkg-config, libX11
|
||||||
, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, libpng, libjpeg, portmidi, freetype
|
, SDL2, SDL2_image, SDL2_mixer, SDL2_ttf, libpng, libjpeg, portmidi, freetype
|
||||||
|
, fontconfig
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -20,9 +21,6 @@ buildPythonPackage rec {
|
||||||
portmidi libX11 freetype
|
portmidi libX11 freetype
|
||||||
];
|
];
|
||||||
|
|
||||||
# Tests fail because of no audio device and display.
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
preConfigure = ''
|
preConfigure = ''
|
||||||
sed \
|
sed \
|
||||||
-e "s/origincdirs = .*/origincdirs = []/" \
|
-e "s/origincdirs = .*/origincdirs = []/" \
|
||||||
|
@ -39,9 +37,18 @@ buildPythonPackage rec {
|
||||||
LOCALBASE=/ ${python.interpreter} buildconfig/config.py
|
LOCALBASE=/ ${python.interpreter} buildconfig/config.py
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
checkInputs = [ fontconfig ];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
|
# No audio or video device in test environment
|
||||||
|
export SDL_VIDEODRIVER=dummy
|
||||||
|
export SDL_AUDIODRIVER=disk
|
||||||
|
export SDL_DISKAUDIOFILE=/dev/null
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Python library for games";
|
description = "Python library for games";
|
||||||
homepage = "http://www.pygame.org/";
|
homepage = "https://www.pygame.org/";
|
||||||
license = licenses.lgpl21Plus;
|
license = licenses.lgpl21Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue