1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, boost 6, eigen 7, numpy 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "eigenpy"; 12 version = "3.1.3"; 13 14 src = fetchFromGitHub { 15 owner = "stack-of-tasks"; 16 repo = finalAttrs.pname; 17 rev = "v${finalAttrs.version}"; 18 fetchSubmodules = true; 19 hash = "sha256-8UuJA96pkXXRKDzQTjoz7w8TQrS5+nfLdsT0j9/oqz0="; 20 }; 21 22 strictDeps = true; 23 24 nativeBuildInputs = [ 25 cmake 26 ]; 27 28 buildInputs = [ 29 boost 30 ]; 31 32 propagatedBuildInputs = [ 33 eigen 34 numpy 35 ]; 36 37 doCheck = true; 38 pythonImportsCheck = [ 39 "eigenpy" 40 ]; 41 42 meta = with lib; { 43 description = "Bindings between Numpy and Eigen using Boost.Python"; 44 homepage = "https://github.com/stack-of-tasks/eigenpy"; 45 changelog = "https://github.com/stack-of-tasks/eigenpy/releases/tag/v${version}"; 46 license = licenses.bsd2; 47 maintainers = with maintainers; [ nim65s wegank ]; 48 platforms = platforms.unix; 49 }; 50})