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