1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k 2, boost, freetype, ftgl, libGLU_combined }: 3 4buildPythonPackage rec { 5 pname = "pyftgl"; 6 version = "0.4b"; 7 name = pname + "-" + version; 8 9 src = fetchFromGitHub { 10 owner = "umlaeute"; 11 repo = name; 12 rev = version; 13 sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r"; 14 }; 15 16 postPatch = stdenv.lib.optional isPy3k '' 17 sed -i "s,'boost_python','boost_python3',g" setup.py 18 ''; 19 20 buildInputs = [ boost freetype ftgl libGLU_combined ]; 21 22 meta = with stdenv.lib; { 23 description = "Python bindings for FTGL (FreeType for OpenGL)"; 24 license = licenses.gpl2Plus; 25 }; 26}