1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-16 01:46:30 +00:00
nixpkgs/pkgs/development/python-modules/pyftgl/default.nix
2017-10-18 03:15:23 +03:00

25 lines
593 B
Nix

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