pythonPackages.pybind11: expose headers

This commit is contained in:
Jonathan Ringer 2019-10-17 02:44:43 -07:00 committed by Frederik Rietdijk
parent 5305675861
commit 46515fbada

View file

@ -23,7 +23,8 @@ buildPythonPackage rec {
dontUseCmakeConfigure = true;
checkInputs = [ pytest cmake ]
nativeBuildInputs = [ cmake ];
checkInputs = [ pytest ]
++ (lib.optional (numpy != null) numpy)
++ (lib.optional (eigen != null) eigen)
++ (lib.optional (scipy != null) scipy);
@ -32,6 +33,11 @@ buildPythonPackage rec {
make -j $NIX_BUILD_CORES pytest
'';
# re-expose the headers to other packages
postInstall = ''
ln -s $out/include/python${python.pythonVersion}m/pybind11/ $out/include/pybind11
'';
meta = {
homepage = https://github.com/pybind/pybind11;
description = "Seamless operability between C++11 and Python";