3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyftgl/default.nix

34 lines
716 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, fetchFromGitHub
2019-11-10 16:44:34 +00:00
, 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
'';
2019-11-10 16:44:34 +00:00
buildInputs = [ boost freetype ftgl libGLU libGL ];
meta = with lib; {
description = "Python bindings for FTGL (FreeType for OpenGL)";
license = licenses.gpl2Plus;
};
}