mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
python3Packages.meshcat: init at 0.3.2
This commit is contained in:
parent
06dce76d21
commit
6ef5d97ea1
47
pkgs/development/python-modules/meshcat/default.nix
Normal file
47
pkgs/development/python-modules/meshcat/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user