depot/third_party/nixpkgs/pkgs/development/python-modules/meshcat/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

48 lines
853 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";
license = licenses.mit;
maintainers = with maintainers; [ wegank ];
};
}