Merge pull request #133 from MarcWeber/fixes/add_python_game
adding python libraries serial and game which are both dependencies of p...
This commit is contained in:
commit
10b3a56d85
|
@ -784,6 +784,36 @@ let pythonPackages = python.modules // rec {
|
|||
};
|
||||
});
|
||||
|
||||
game = buildPythonPackage rec {
|
||||
name = "pygame-1.9.1";
|
||||
src = fetchurl {
|
||||
url = http://www.pygame.org/ftp/pygame-1.9.1release.tar.gz;
|
||||
sha256 = "0cyl0ww4fjlf289pjxa53q4klyn55ajvkgymw0qrdgp4593raq52";
|
||||
};
|
||||
patches = [ ./pygame.patch ];
|
||||
# auto confirming missing dependencies:
|
||||
# PORTMIDI and PORTTIME still missing
|
||||
patchPhase = ''
|
||||
sed -i 's@raw_input(.*@"1"@' config_unix.py
|
||||
unset patchPhase
|
||||
patchPhase
|
||||
'';
|
||||
installCommand = "python setup.py install --prefix=$out";
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pkgs.SDL
|
||||
pkgs.SDL_mixer
|
||||
pkgs.SDL_gfx
|
||||
pkgs.SDL_net
|
||||
pkgs.SDL_sound
|
||||
pkgs.SDL_ttf
|
||||
pkgs.SDL_image
|
||||
pkgs.smpeg
|
||||
pkgs.libpng
|
||||
pkgs.libjpeg
|
||||
];
|
||||
};
|
||||
|
||||
genshi = buildPythonPackage {
|
||||
name = "genshi-0.6";
|
||||
|
||||
|
@ -3009,6 +3039,15 @@ let pythonPackages = python.modules // rec {
|
|||
};
|
||||
};
|
||||
|
||||
serial = buildPythonPackage rec {
|
||||
name = "pyserial-2.5";
|
||||
doCheck = false;
|
||||
src = fetchurl {
|
||||
url = http://heanet.dl.sourceforge.net/project/pyserial/pyserial/2.5/pyserial-2.5.tar.gz;
|
||||
sha256 = "04gmpfb43ppc8cf1bvkz8r1gl0nrxc38kpfdqs40ib0d1ql25pgd";
|
||||
};
|
||||
};
|
||||
|
||||
tracing = buildPythonPackage rec {
|
||||
name = "tracing-0.6";
|
||||
|
||||
|
|
Loading…
Reference in New Issue