python3Packages.meshcat: init at 0.3.2

This commit is contained in:
Weijia Wang 2023-01-04 01:59:39 +01:00
parent 06dce76d21
commit 6ef5d97ea1
2 changed files with 49 additions and 0 deletions

View File

@ -0,0 +1,47 @@
{ lib
, buildPythonPackage
, fetchPypi
, ipython
, u-msgpack-python
, numpy
, tornado
, pyzmq
, pyngrok
, pillow
}:
buildPythonPackage rec {
pname = "meshcat";
version = "0.3.2";
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";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
};
}

View File

@ -5727,6 +5727,8 @@ self: super: with self; {
mesa = callPackage ../development/python-modules/mesa { };
meshcat = callPackage ../development/python-modules/meshcat { };
meshio = callPackage ../development/python-modules/meshio { };
meshlabxml = callPackage ../development/python-modules/meshlabxml { };