eigenpy: run unit tests (#395037)
This commit is contained in:
@@ -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; {
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user