python3Packages.viser: init at 1.0.0, python3Packages.yourdfpy: init at 0.0.58, python3Packages.plyfile: 1.0.2 -> 1.1.2, python3Packages.robot-descriptions: init at 1.2.0 (#421548)

authored by Gaétan Lepage and committed by GitHub 189f817a 3683d033

+294 -7
+9 -7
pkgs/development/python-modules/plyfile/default.nix
··· 4 4 buildPythonPackage, 5 5 6 6 # build-system 7 - pdm-pep517, 7 + pdm-backend, 8 8 9 9 # dependencies 10 10 numpy, ··· 15 15 16 16 buildPythonPackage rec { 17 17 pname = "plyfile"; 18 - version = "1.0.2"; 18 + version = "1.1.2"; 19 19 pyproject = true; 20 20 21 21 src = fetchFromGitHub { 22 22 owner = "dranjan"; 23 23 repo = "python-plyfile"; 24 24 tag = "v${version}"; 25 - hash = "sha256-HlyqljfjuaZoG5f2cfDQj+7KS0en7pW2PPEnpvH8U+E="; 25 + hash = "sha256-J72aoXEMcuHtYaLtzWJ5UGN9HdJTnQ1/8KgdMLtwyr0="; 26 26 }; 27 27 28 - nativeBuildInputs = [ pdm-pep517 ]; 28 + build-system = [ pdm-backend ]; 29 29 30 - propagatedBuildInputs = [ numpy ]; 30 + dependencies = [ numpy ]; 31 31 32 32 nativeCheckInputs = [ pytestCheckHook ]; 33 33 34 - meta = with lib; { 34 + pythonImportsCheck = [ "plyfile" ]; 35 + 36 + meta = { 35 37 description = "NumPy-based text/binary PLY file reader/writer for Python"; 36 38 homepage = "https://github.com/dranjan/python-plyfile"; 37 - maintainers = with maintainers; [ abbradar ]; 39 + maintainers = with lib.maintainers; [ abbradar ]; 38 40 }; 39 41 }
+64
pkgs/development/python-modules/robot-descriptions/default.nix
··· 1 + { 2 + lib, 3 + buildPythonPackage, 4 + fetchFromGitHub, 5 + flit-core, 6 + gitpython, 7 + tqdm, 8 + # idyntree, 9 + mujoco, 10 + pinocchio, 11 + pybullet, 12 + pycollada, 13 + # robomeshcat, 14 + yourdfpy, 15 + }: 16 + 17 + buildPythonPackage rec { 18 + pname = "robot-descriptions"; 19 + version = "1.20.0"; 20 + pyproject = true; 21 + 22 + src = fetchFromGitHub { 23 + owner = "robot-descriptions"; 24 + repo = "robot_descriptions.py"; 25 + tag = "v${version}"; 26 + hash = "sha256-8SBzhkENpUodnfObekkMPUsTQr/8mz27v3PK0S3IKO0="; 27 + }; 28 + 29 + build-system = [ 30 + flit-core 31 + ]; 32 + 33 + dependencies = [ 34 + gitpython 35 + tqdm 36 + pycollada 37 + ]; 38 + 39 + optional-dependencies = { 40 + opts = [ 41 + # idyntree 42 + mujoco 43 + pinocchio 44 + pybullet 45 + # robomeshcat 46 + yourdfpy 47 + ]; 48 + }; 49 + 50 + pythonImportsCheck = [ 51 + "robot_descriptions" 52 + ]; 53 + 54 + # This package needs to download a lot of data at runtime 55 + doCheck = false; 56 + 57 + meta = { 58 + description = "Access 125+ robot descriptions from the main Python robotics frameworks"; 59 + homepage = "https://github.com/robot-descriptions/robot_descriptions.py"; 60 + changelog = "https://github.com/robot-descriptions/robot_descriptions.py/blob/${src.rev}/CHANGELOG.md"; 61 + license = lib.licenses.asl20; 62 + maintainers = with lib.maintainers; [ nim65s ]; 63 + }; 64 + }
+152
pkgs/development/python-modules/viser/default.nix
··· 1 + { 2 + lib, 3 + 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + 7 + # nativeBuildInputs 8 + nodejs, 9 + fetchYarnDeps, 10 + yarnConfigHook, 11 + 12 + # build-system 13 + hatchling, 14 + 15 + # dependencies 16 + imageio, 17 + msgspec, 18 + nodeenv, 19 + numpy, 20 + opencv-python, 21 + plyfile, 22 + psutil, 23 + requests, 24 + rich, 25 + scikit-image, 26 + scipy, 27 + tqdm, 28 + trimesh, 29 + tyro, 30 + websockets, 31 + yourdfpy, 32 + 33 + # optional-dependencies 34 + hypothesis, 35 + pre-commit, 36 + pandas, 37 + pyright, 38 + pytest, 39 + ruff, 40 + gdown, 41 + matplotlib, 42 + plotly, 43 + # pyliblzfse, 44 + robot-descriptions, 45 + torch, 46 + 47 + # nativeCheckInputs 48 + pytestCheckHook, 49 + }: 50 + 51 + buildPythonPackage rec { 52 + pname = "viser"; 53 + version = "1.0.0"; 54 + pyproject = true; 55 + 56 + src = fetchFromGitHub { 57 + owner = "nerfstudio-project"; 58 + repo = "viser"; 59 + tag = "v${version}"; 60 + hash = "sha256-itFJ9mlN2VaWbLzQp1ERMxBvXg0O7SMWzEWDdxoTA/0="; 61 + }; 62 + 63 + postPatch = '' 64 + # prepare yarn offline cache 65 + mkdir -p node_modules 66 + cd src/viser/client 67 + cp package.json yarn.lock ../../.. 68 + ln -s ../../../node_modules 69 + 70 + # fix: [vite-plugin-eslint] Failed to load config "react-app" to extend from. 71 + substituteInPlace vite.config.mts --replace-fail \ 72 + "eslint({ failOnError: false, failOnWarning: false })," "" 73 + 74 + cd ../../.. 75 + ''; 76 + 77 + nativeBuildInputs = [ 78 + yarnConfigHook 79 + nodejs 80 + ]; 81 + 82 + yarnOfflineCache = fetchYarnDeps { 83 + yarnLock = src + "/src/viser/client/yarn.lock"; 84 + hash = "sha256-4x+zJIqjVoKmEdOUPGpCuMmlRBfF++3oWtbNYAvd2ko="; 85 + }; 86 + 87 + preBuild = '' 88 + cd src/viser/client 89 + yarn --offline build 90 + cd ../../.. 91 + ''; 92 + 93 + build-system = [ 94 + hatchling 95 + ]; 96 + 97 + dependencies = [ 98 + imageio 99 + msgspec 100 + nodeenv 101 + numpy 102 + opencv-python 103 + plyfile 104 + psutil 105 + requests 106 + rich 107 + scikit-image 108 + scipy 109 + tqdm 110 + trimesh 111 + tyro 112 + websockets 113 + yourdfpy 114 + ]; 115 + 116 + optional-dependencies = { 117 + dev = [ 118 + hypothesis 119 + pre-commit 120 + pyright 121 + pytest 122 + ruff 123 + ]; 124 + examples = [ 125 + gdown 126 + matplotlib 127 + pandas 128 + plotly 129 + plyfile 130 + # pyliblzfse 131 + robot-descriptions 132 + torch 133 + ]; 134 + }; 135 + 136 + nativeCheckInputs = [ 137 + hypothesis 138 + pytestCheckHook 139 + ]; 140 + 141 + pythonImportsCheck = [ 142 + "viser" 143 + ]; 144 + 145 + meta = { 146 + changelog = "https://github.com/nerfstudio-project/viser/releases/tag/${src.tag}"; 147 + description = "Web-based 3D visualization + Python"; 148 + homepage = "https://github.com/nerfstudio-project/viser"; 149 + license = lib.licenses.asl20; 150 + maintainers = with lib.maintainers; [ nim65s ]; 151 + }; 152 + }
+63
pkgs/development/python-modules/yourdfpy/default.nix
··· 1 + { 2 + lib, 3 + 4 + buildPythonPackage, 5 + fetchFromGitHub, 6 + 7 + # build-system 8 + setuptools, 9 + setuptools-scm, 10 + 11 + # dependencies 12 + lxml, 13 + trimesh, 14 + numpy, 15 + six, 16 + 17 + # nativeCheckInputs 18 + pytestCheckHook, 19 + pytest-cov-stub, 20 + }: 21 + 22 + buildPythonPackage rec { 23 + pname = "yourdfpy"; 24 + version = "0.0.58"; 25 + pyproject = true; 26 + 27 + src = fetchFromGitHub { 28 + owner = "clemense"; 29 + repo = "yourdfpy"; 30 + tag = "v${version}"; 31 + hash = "sha256-Wi4QcgTOf/1nXWssFtlyRxql8Jg1nNKjEGkWuP+w73g="; 32 + }; 33 + 34 + build-system = [ 35 + setuptools 36 + setuptools-scm 37 + ]; 38 + 39 + dependencies = [ 40 + lxml 41 + trimesh 42 + numpy 43 + six 44 + ]; 45 + 46 + nativeCheckInputs = [ 47 + pytestCheckHook 48 + pytest-cov-stub 49 + ]; 50 + 51 + pythonImportsCheck = [ 52 + "yourdfpy" 53 + ]; 54 + 55 + meta = { 56 + description = "Python parser for URDFs"; 57 + homepage = "https://github.com/clemense/yourdfpy/"; 58 + changelog = "https://github.com/clemense/yourdfpy/blob/${src.tag}/CHANGELOG.md"; 59 + license = lib.licenses.mit; 60 + maintainers = with lib.maintainers; [ nim65s ]; 61 + mainProgram = "yourdfpy"; 62 + }; 63 + }
+6
pkgs/top-level/python-packages.nix
··· 15762 15762 15763 15763 robomachine = callPackage ../development/python-modules/robomachine { }; 15764 15764 15765 + robot-descriptions = callPackage ../development/python-modules/robot-descriptions { }; 15766 + 15765 15767 robot-detection = callPackage ../development/python-modules/robot-detection { }; 15766 15768 15767 15769 robotframework = callPackage ../development/python-modules/robotframework { }; ··· 19350 19352 19351 19353 virtualenvwrapper = callPackage ../development/python-modules/virtualenvwrapper { }; 19352 19354 19355 + viser = callPackage ../development/python-modules/viser { }; 19356 + 19353 19357 visions = callPackage ../development/python-modules/visions { }; 19354 19358 19355 19359 visitor = callPackage ../development/python-modules/visitor { }; ··· 19983 19987 yoto-api = callPackage ../development/python-modules/yoto-api { }; 19984 19988 19985 19989 youless-api = callPackage ../development/python-modules/youless-api { }; 19990 + 19991 + yourdfpy = callPackage ../development/python-modules/yourdfpy { }; 19986 19992 19987 19993 youseedee = callPackage ../development/python-modules/youseedee { }; 19988 19994