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
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pybullet";
|
2019-12-29 09:28:08 +00:00
|
|
|
version = "2.6.1";
|
2019-03-27 22:17:37 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-12-29 09:28:08 +00:00
|
|
|
sha256 = "c6da064687ae481c73b744b9f3a62d8231349a6bf368d7a2e564f71ef73e9403";
|
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
|
|
|
|
];
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|