fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
50 lines
901 B
Nix
50 lines
901 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
ipython,
|
|
u-msgpack-python,
|
|
numpy,
|
|
tornado,
|
|
pyzmq,
|
|
pyngrok,
|
|
pillow,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "meshcat";
|
|
version = "0.3.2";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-LP4XzeT+hdByo94Bip2r9WJvgMJV//LOY7JqSNJIStk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
sed -i '/PYTHONPATH/d' src/meshcat/servers/zmqserver.py
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
ipython
|
|
u-msgpack-python
|
|
numpy
|
|
tornado
|
|
pyzmq
|
|
pyngrok
|
|
pillow
|
|
];
|
|
|
|
pythonImportsCheck = [ "meshcat" ];
|
|
|
|
# requires a running MeshCat viewer
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rdeits/meshcat-python";
|
|
description = "WebGL-based 3D visualizer for Python";
|
|
mainProgram = "meshcat-server";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ wegank ];
|
|
};
|
|
}
|