nixpkgs/pkgs/development/python-modules/pybullet/default.nix
2020-05-11 22:12:50 +02:00

38 lines
742 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, libGLU, libGL
, xorg
, numpy
}:
buildPythonPackage rec {
pname = "pybullet";
version = "2.6.9";
src = fetchPypi {
inherit pname version;
sha256 = "5924371a47625252d8566bbc662befc55e1d35c6c1375c8236e6f8a626293fa6";
};
buildInputs = [
libGLU libGL
xorg.libX11
];
propagatedBuildInputs = [ numpy ];
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;
};
}