pythonPackages.pybind11: hardcode include directory

This commit is contained in:
Frederik Rietdijk
2019-12-19 19:57:42 +01:00
parent 6dadfaa197
commit 9b0b85345c
2 changed files with 61 additions and 2 deletions

View File

@@ -39,6 +39,14 @@ buildPythonPackage rec {
dontUsePipInstall = true;
dontUseSetuptoolsCheck = true;
patches = [
./0001-Find-include-directory.patch
];
postPatch = ''
substituteInPlace pybind11/__init__.py --subst-var-by include "$out/include"
'';
preFixup = ''
pushd ..
export PYBIND11_USE_CMAKE=1
@@ -50,8 +58,6 @@ buildPythonPackage rec {
popd
'';
doCheck = true;
checkInputs = [
pytest
numpy