eigenpy: run unit tests (#395037)

This commit is contained in:
Weijia Wang
2025-05-06 09:21:44 +02:00
committed by GitHub
2 changed files with 24 additions and 2 deletions
@@ -2,13 +2,23 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fontconfig,
# nativeBuildInputs
cmake,
doxygen,
graphviz,
scipy,
# buildInputs
boost,
# propagatedBuildInputs
eigen,
jrl-cmakemodules,
numpy,
scipy,
}:
buildPythonPackage rec {
@@ -31,14 +41,22 @@ buildPythonPackage rec {
cmakeFlags = [
"-DINSTALL_DOCUMENTATION=ON"
"-DBUILD_TESTING=ON"
"-DBUILD_TESTING_SCIPY=ON"
];
strictDeps = true;
# Fontconfig error: No writable cache directories
preBuild = "export XDG_CACHE_HOME=$(mktemp -d)";
# Fontconfig error: Cannot load default config file: No such file: (null)
env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
nativeBuildInputs = [
cmake
doxygen
graphviz
scipy
];
@@ -50,6 +68,8 @@ buildPythonPackage rec {
numpy
];
preInstallCheck = "make test";
pythonImportsCheck = [ "eigenpy" ];
meta = with lib; {
+3 -1
View File
@@ -4370,7 +4370,9 @@ self: super: with self; {
eheimdigital = callPackage ../development/python-modules/eheimdigital { };
eigenpy = callPackage ../development/python-modules/eigenpy { };
eigenpy = callPackage ../development/python-modules/eigenpy {
inherit (pkgs) graphviz; # need the `dot` program, not the python module
};
einops = callPackage ../development/python-modules/einops { };