2017-08-31 15:02:11 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2018-02-24 13:12:44 +00:00
|
|
|
, libGLU_combined, xorg, freetype, fontconfig, future}:
|
2017-08-31 15:02:11 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-05-09 15:49:57 +01:00
|
|
|
version = "1.3.2";
|
2017-08-31 15:02:11 +01:00
|
|
|
pname = "pyglet";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-05-09 15:49:57 +01:00
|
|
|
sha256 = "b00570e7cdf6971af8953b6ece50d83d13272afa5d1f1197c58c0f478dd17743";
|
2017-08-31 15:02:11 +01:00
|
|
|
};
|
|
|
|
|
2017-12-31 10:11:32 +00:00
|
|
|
postPatch = let
|
2018-02-24 13:12:44 +00:00
|
|
|
libs = [ libGLU_combined xorg.libX11 freetype fontconfig ];
|
2017-08-31 15:02:11 +01:00
|
|
|
paths = builtins.concatStringsSep "," (map (l: "\"${l}/lib\"") libs);
|
|
|
|
in "sed -i -e 's|directories\.extend.*lib[^]]*|&,${paths}|' pyglet/lib.py";
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-12-31 10:11:32 +00:00
|
|
|
propagatedBuildInputs = [ future ];
|
|
|
|
|
2017-08-31 15:02:11 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.pyglet.org/";
|
|
|
|
description = "A cross-platform windowing and multimedia library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.mesaPlatforms;
|
|
|
|
};
|
|
|
|
}
|