nixpkgs/pkgs/development/python-modules/eigenpy/default.nix
2023-08-01 18:20:45 +02:00

51 lines
945 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, boost
, eigen
, numpy
}:
stdenv.mkDerivation (finalAttrs: {
pname = "eigenpy";
version = "3.1.1";
src = fetchFromGitHub {
owner = "stack-of-tasks";
repo = finalAttrs.pname;
rev = "v${finalAttrs.version}";
fetchSubmodules = true;
hash = "sha256-mUwckBelFVRCXp3hspB8WRFFaLVyRsfp6XbqU8HeHvw=";
};
strictDeps = true;
nativeBuildInputs = [
cmake
];
buildInputs = [
boost
];
propagatedBuildInputs = [
eigen
numpy
];
doCheck = true;
pythonImportsCheck = [
"eigenpy"
];
meta = with lib; {
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/v${version}";
license = licenses.bsd2;
maintainers = with maintainers; [ nim65s wegank ];
platforms = platforms.unix;
};
})