mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
51 lines
945 B
Nix
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;
|
|
};
|
|
})
|