2017-08-31 14:02:11 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2017-12-31 10:11:32 +00:00
|
|
|
, mesa, xorg, freetype, fontconfig, future}:
|
2017-08-31 14:02:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-02-17 13:21:56 +00:00
|
|
|
version = "1.3.1";
|
2017-08-31 14:02:11 +00:00
|
|
|
pname = "pyglet";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-02-17 13:21:56 +00:00
|
|
|
sha256 = "0a73280fa3949ea4890fee28f625c10b1e10a7cda390a08b6bce4740948167cd";
|
2017-08-31 14:02:11 +00:00
|
|
|
};
|
|
|
|
|
2017-12-31 10:11:32 +00:00
|
|
|
postPatch = let
|
2017-08-31 14:02:11 +00:00
|
|
|
libs = [ mesa xorg.libX11 freetype fontconfig ];
|
|
|
|
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 14:02:11 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "http://www.pyglet.org/";
|
|
|
|
description = "A cross-platform windowing and multimedia library";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.mesaPlatforms;
|
|
|
|
};
|
|
|
|
}
|