python.pkgs.pygame: fix build

after setting `strictDeps = true;`
This commit is contained in:
Robert Schütz 2019-02-20 20:27:31 +01:00
parent 5124cf7a14
commit c01276654e

View File

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, buildPythonPackage, python, libX11
{ lib, fetchPypi, buildPythonPackage, python, pkg-config, libX11
, SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi, freetype
}:
@ -6,11 +6,15 @@ buildPythonPackage rec {
pname = "pygame";
version = "1.9.4";
src = fetchurl {
url = "mirror://pypi/p/pygame/pygame-${version}.tar.gz";
src = fetchPypi {
inherit pname version;
sha256 = "700d1781c999af25d11bfd1f3e158ebb660f72ebccb2040ecafe5069d0b2c0b6";
};
nativeBuildInputs = [
pkg-config SDL
];
buildInputs = [
SDL SDL_image SDL_mixer SDL_ttf libpng libjpeg
portmidi libX11 freetype
@ -35,7 +39,7 @@ buildPythonPackage rec {
LOCALBASE=/ ${python.interpreter} config.py
'';
meta = with stdenv.lib; {
meta = with lib; {
description = "Python library for games";
homepage = http://www.pygame.org/;
license = licenses.lgpl21Plus;