2017-10-18 00:14:01 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
|
2017-08-31 14:01:39 +00:00
|
|
|
, boost, freetype, ftgl, mesa }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "pyftgl-0.4b";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "umlaeute";
|
|
|
|
repo = "pyftgl";
|
|
|
|
rev = "0.4b";
|
|
|
|
sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
|
|
|
|
};
|
|
|
|
|
2017-10-18 00:14:01 +00:00
|
|
|
postPatch = stdenv.lib.optional isPy3k ''
|
|
|
|
sed -i "s,'boost_python','boost_python3',g" setup.py
|
|
|
|
'';
|
|
|
|
|
2017-08-31 14:01:39 +00:00
|
|
|
buildInputs = [ boost freetype ftgl mesa ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Python bindings for FTGL (FreeType for OpenGL)";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|