2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
ipython,
|
|
|
|
u-msgpack-python,
|
|
|
|
numpy,
|
|
|
|
tornado,
|
|
|
|
pyzmq,
|
|
|
|
pyngrok,
|
|
|
|
pillow,
|
2023-01-20 10:41:00 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "meshcat";
|
|
|
|
version = "0.3.2";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2023-01-20 10:41:00 +00:00
|
|
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "meshcat-server";
|
2023-01-20 10:41:00 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ wegank ];
|
|
|
|
};
|
|
|
|
}
|