Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

python3Packages.pykdl: use system pybind11

pykdl 1.5.1 only supports using a vendored copy of pybind11, but this
version doesn't support Python 3.11. Therefore, backport an upstream
patch that allows using a system pybind11 installation.

(cherry picked from commit 20135addf0c43bbf2efd74104439df1b02479dd9)

authored by Ben Wolsieffer and committed by github-actions[bot] c1dede98 d572fb05

+12 -2
+12 -2
pkgs/development/python-modules/pykdl/default.nix
··· 1 - { lib, stdenv, toPythonModule, cmake, orocos-kdl, eigen, python }: 1 + { lib, stdenv, toPythonModule, fetchpatch, cmake, pybind11, orocos-kdl, eigen 2 + , python }: 2 3 3 4 toPythonModule (stdenv.mkDerivation { 4 5 pname = "pykdl"; ··· 6 7 7 8 sourceRoot = "${orocos-kdl.src.name}/python_orocos_kdl"; 8 9 10 + patches = [ 11 + # Support system pybind11; the vendored copy doesn't support Python 3.11 12 + (fetchpatch { 13 + url = "https://github.com/orocos/orocos_kinematics_dynamics/commit/e25a13fc5820dbca6b23d10506407bca9bcdd25f.patch"; 14 + hash = "sha256-NGMVGEYsa7hVX+SgRZgeSm93BqxFR1uiyFvzyF5H0Y4="; 15 + stripLen = 1; 16 + }) 17 + ]; 18 + 9 19 # Fix hardcoded installation path 10 20 postPatch = '' 11 21 substituteInPlace CMakeLists.txt \ 12 22 --replace dist-packages site-packages 13 23 ''; 14 24 15 - nativeBuildInputs = [ cmake ]; 25 + nativeBuildInputs = [ cmake pybind11 ]; 16 26 buildInputs = [ orocos-kdl eigen ]; 17 27 propagatedBuildInputs = [ python ]; 18 28