blob: ff1ef37b22e57e9e3fc885e93ec8ceedbfe62cd3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
{ 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 ];
};
}
|