{ stdenv , buildPythonPackage , fetchPypi , libGLU_combined , xorg , future , pytest , glibc , gtk2-x11 , gdk_pixbuf }: buildPythonPackage rec { version = "1.3.2"; pname = "pyglet"; src = fetchPypi { inherit pname version; sha256 = "b00570e7cdf6971af8953b6ece50d83d13272afa5d1f1197c58c0f478dd17743"; }; # find_library doesn't reliably work with nix (https://github.com/NixOS/nixpkgs/issues/7307). # Even naively searching `LD_LIBRARY_PATH` won't work since `libc.so` is a linker script and # ctypes.cdll.LoadLibrary cannot deal with those. Therefore, just hardcode the paths to the # necessary libraries. postPatch = let ext = stdenv.hostPlatform.extensions.sharedLibrary; in '' cat > pyglet/lib.py <