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