anchor.diff:    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
  
positive.code: { stdenv, lib, fetchurl, buildPythonPackage, python, libX11
  , SDL, SDL_image, SDL_mixer, SDL_ttf, libpng, libjpeg, portmidi, freetype
  }:
  
  
negative.code:     LOCALBASE=/ ${python.interpreter} config.py
    '';
  
    meta = with lib; {
      description = "Python library for games";
      homepage = http://www.pygame.org/;
      license = licenses.lgpl21Plus;
  