mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-19 11:00:19 +03:00
python.pkgs.pygame: fix build
after setting `strictDeps = true;`
This commit is contained in:
parent
5124cf7a14
commit
c01276654e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user