65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
gitpython,
|
|
tqdm,
|
|
# idyntree,
|
|
mujoco,
|
|
pinocchio,
|
|
pybullet,
|
|
pycollada,
|
|
# robomeshcat,
|
|
yourdfpy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "robot-descriptions";
|
|
version = "1.20.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "robot-descriptions";
|
|
repo = "robot_descriptions.py";
|
|
tag = "v${version}";
|
|
hash = "sha256-8SBzhkENpUodnfObekkMPUsTQr/8mz27v3PK0S3IKO0=";
|
|
};
|
|
|
|
build-system = [
|
|
flit-core
|
|
];
|
|
|
|
dependencies = [
|
|
gitpython
|
|
tqdm
|
|
pycollada
|
|
];
|
|
|
|
optional-dependencies = {
|
|
opts = [
|
|
# idyntree
|
|
mujoco
|
|
pinocchio
|
|
pybullet
|
|
# robomeshcat
|
|
yourdfpy
|
|
];
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"robot_descriptions"
|
|
];
|
|
|
|
# This package needs to download a lot of data at runtime
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
description = "Access 125+ robot descriptions from the main Python robotics frameworks";
|
|
homepage = "https://github.com/robot-descriptions/robot_descriptions.py";
|
|
changelog = "https://github.com/robot-descriptions/robot_descriptions.py/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
|
};
|
|
}
|