2019-03-27 22:17:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2019-11-10 16:44:34 +00:00
|
|
|
, libGLU, libGL
|
2019-03-27 22:17:37 +00:00
|
|
|
, xorg
|
2020-02-23 03:06:28 +00:00
|
|
|
, numpy
|
2019-03-27 22:17:37 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pybullet";
|
2020-02-23 03:06:28 +00:00
|
|
|
version = "2.6.6";
|
2019-03-27 22:17:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-02-23 03:06:28 +00:00
|
|
|
sha256 = "1lsvjqij1vb9w8j6lvnq7lppflc7svz4cj37n74q67mb46gq3dxr";
|
2019-03-27 22:17:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
2019-03-27 22:17:37 +00:00
|
|
|
xorg.libX11
|
|
|
|
];
|
|
|
|
|
2020-02-23 03:06:28 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
|
2019-03-27 22:17:37 +00:00
|
|
|
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";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pybullet.org/";
|
2019-03-27 22:17:37 +00:00
|
|
|
license = licenses.zlib;
|
|
|
|
maintainers = with maintainers; [ timokau ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|