nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #270029 from NixOS/backport-266178-to-release-23.11

[Backport release-23.11] python3Packages.pykdl: fix build with Python 3.11

authored by

OTABI Tomoya and committed by
GitHub
c6cccd0a b037a297

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