1{ lib
2, buildPythonPackage
3, fetchPypi
4, libGLU, libGL
5, xorg
6, numpy
7}:
8
9buildPythonPackage rec {
10 pname = "pybullet";
11 version = "3.2.5";
12
13 src = fetchPypi {
14 inherit pname version;
15 hash = "sha256-G8ua+4eghr4bLeGPCE0f2rgZTaG/cfJkdDyia6o5w1E=";
16 };
17
18 buildInputs = [
19 libGLU libGL
20 xorg.libX11
21 ];
22
23 propagatedBuildInputs = [ numpy ];
24
25 patches = [
26 # make sure X11 and OpenGL can be found at runtime
27 ./static-libs.patch
28 ];
29
30 meta = with lib; {
31 description = "Open-source software for robot simulation, integrated with OpenAI Gym";
32 homepage = "https://pybullet.org/";
33 license = licenses.zlib;
34 maintainers = with maintainers; [ timokau ];
35 platforms = platforms.linux;
36 };
37}