Files
nixpkgs/pkgs/development/python-modules/eigenpy/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

89 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
writableTmpDirAsHomeHook,
fontconfig,
# nativeBuildInputs
cmake,
doxygen,
graphviz,
pkg-config,
scipy,
# buildInputs
boost,
# propagatedBuildInputs
eigen,
jrl-cmakemodules,
numpy,
}:
buildPythonPackage rec {
pname = "eigenpy";
version = "3.12.0";
pyproject = false; # Built with cmake
src = fetchFromGitHub {
owner = "stack-of-tasks";
repo = "eigenpy";
tag = "v${version}";
hash = "sha256-U4uL0knGJFpD14Gc32lgTZlw7QlXHMEqTnp0bmHJRU8=";
};
outputs = [
"dev"
"doc"
"out"
];
cmakeFlags = [
"-DINSTALL_DOCUMENTATION=ON"
"-DBUILD_TESTING=ON"
"-DBUILD_TESTING_SCIPY=ON"
];
strictDeps = true;
# Fontconfig error: Cannot load default config file: No such file: (null)
env.FONTCONFIG_FILE = "${fontconfig.out}/etc/fonts/fonts.conf";
nativeBuildInputs = [
cmake
doxygen
graphviz
pkg-config
scipy
writableTmpDirAsHomeHook
];
buildInputs = [ boost ];
propagatedBuildInputs = [
eigen
jrl-cmakemodules
numpy
];
preInstallCheck = ''
make test
'';
pythonImportsCheck = [ "eigenpy" ];
meta = {
description = "Bindings between Numpy and Eigen using Boost.Python";
homepage = "https://github.com/stack-of-tasks/eigenpy";
changelog = "https://github.com/stack-of-tasks/eigenpy/releases/tag/${src.tag}";
license = lib.licenses.bsd2;
maintainers = with lib.maintainers; [
nim65s
wegank
];
platforms = lib.platforms.unix;
};
}