summary refs log blame commit diff
path: root/pkgs/development/python-modules/pyftgl/default.nix
blob: 90fd7903808338d22355bec2f27b2d05f064a4bf (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                                          
                                      







                                                                                      

                        

                   


                         
                                 
                  


                                                                    

                                                                       

     
                                                     
 
                    



                                                                   
{ lib, buildPythonPackage, fetchFromGitHub
, boost, freetype, ftgl, libGLU, libGL
, python
}:

let

  pythonVersion = with lib.versions; "${major python.version}${minor python.version}";

in

buildPythonPackage rec {
  pname = "pyftgl";
  version = "0.4b";

  src = fetchFromGitHub {
    owner = "umlaeute";
    repo = "${pname}-${version}";
    rev = version;
    sha256 = "12zcjv4cwwjihiaf74kslrdmmk4bs47h7006gyqfwdfchfjdgg4r";
  };

  postPatch = ''
    sed -i "s,'boost_python','boost_python${pythonVersion}',g" setup.py
  '';

  buildInputs = [ boost freetype ftgl libGLU libGL ];

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