mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-18 07:01:14 +00:00
example-robot-data: add preCheck
fix 43 occurences of eg.:
> ValueError: Mesh package://example-robot-data/robots/ur_description/meshes/ur5/collision/base.stl could not be found.
Following 0c0b3af793
, pinocchio has
hpp-fcl support, so example-robot-data try to load meshes.
But for `package://example-robot-data/robots/…/mesh.stl` paths to be
resolved by the mesh loader, there must be a
`example-robot-data/robots` folder.
This commit is contained in:
parent
0c0b3af793
commit
94924be141
@ -33,6 +33,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
];
|
||||
|
||||
doCheck = true;
|
||||
# The package expect to find an `example-robot-data/robots` folder somewhere
|
||||
# either in install prefix or in the sources
|
||||
# where it can find the meshes for unit tests
|
||||
preCheck = "ln -s source ../../${finalAttrs.pname}";
|
||||
pythonImportsCheck = [
|
||||
"example_robot_data"
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user