about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyftgl/default.nix
blob: a858374722551a6cae63182b0092c1ba393db2b2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy3k
, boost, freetype, ftgl, libGLU_combined }:

buildPythonPackage rec {
  pname = "pyftgl";
  version = "0.4b";
  name = pname + "-" + version;

  src = fetchFromGitHub {
    owner = "umlaeute";
    repo = name;
    rev = version;
    sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
  };

  postPatch = stdenv.lib.optional isPy3k ''
    sed -i "s,'boost_python','boost_python3',g" setup.py
  '';

  buildInputs = [ boost freetype ftgl libGLU_combined ];

  meta = with stdenv.lib; {
    description = "Python bindings for FTGL (FreeType for OpenGL)";
    license = licenses.gpl2Plus;
  };
}