{ lib , buildPythonPackage , fetchPypi , libGLU, libGL , xorg , numpy }: buildPythonPackage rec { pname = "pybullet"; version = "2.8.1"; src = fetchPypi { inherit pname version; sha256 = "836d80660920f0696645738367b8c8359878387ba582adb8b37d59d60adedadd"; }; buildInputs = [ libGLU libGL xorg.libX11 ]; propagatedBuildInputs = [ numpy ]; patches = [ # make sure X11 and OpenGL can be found at runtime ./static-libs.patch ]; meta = with lib; { description = "Open-source software for robot simulation, integrated with OpenAI Gym"; homepage = "https://pybullet.org/"; license = licenses.zlib; maintainers = with maintainers; [ timokau ]; platforms = platforms.linux; }; }