nixpkgs/pkgs/development/python-modules/pybullet/default.nix

38 lines
742 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
2019-11-10 16:44:34 +00:00
, libGLU, libGL
, xorg
, numpy
}:
buildPythonPackage rec {
pname = "pybullet";
version = "3.0.8";
src = fetchPypi {
inherit pname version;
sha256 = "623061d305bd5513a911abb2cbd0e37670be166a270123b43ca757bf78e4b438";
};
buildInputs = [
2019-11-10 16:44:34 +00:00
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;
};
}