python3Packages.nanobind: 2.9.2 -> 2.10.1 (#469291)
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
|
||||
index 07678691f..1d85e5eb2 100644
|
||||
--- a/bindings/python/CMakeLists.txt
|
||||
+++ b/bindings/python/CMakeLists.txt
|
||||
@@ -31,6 +31,9 @@ execute_process(
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
OUTPUT_VARIABLE nanobind_ROOT
|
||||
)
|
||||
+if(NOT Python_VERSION AND Python3_VERSION)
|
||||
+ set(Python_VERSION ${Python3_VERSION})
|
||||
+endif()
|
||||
find_package(nanobind CONFIG)
|
||||
cmake_policy(POP)
|
||||
if(NOT nanobind_FOUND)
|
||||
@@ -36,6 +36,11 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-1+a5tFOlEwzhGZtll35EMFceD0iUOOQCbwJd9NcFDlk=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Set Python_VERSION to Python3_VERSION if not already set
|
||||
./fix-cmake-python-version.patch
|
||||
];
|
||||
|
||||
# ref. https://github.com/Simple-Robotics/proxsuite/pull/408 merged upstream
|
||||
postPatch = ''
|
||||
substituteInPlace CMakeLists.txt --replace-fail \
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
}:
|
||||
buildPythonPackage rec {
|
||||
pname = "nanobind";
|
||||
version = "2.9.2";
|
||||
version = "2.10.1";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
@@ -34,7 +34,7 @@ buildPythonPackage rec {
|
||||
repo = "nanobind";
|
||||
tag = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
hash = "sha256-cC+sf2FUm1jdGMRdDoaQK8rjUVkWjn/53c1HQ5gsUWs=";
|
||||
hash = "sha256-LNr3d0ytnkcJOps6DzdZtyiihFwNgv34s5RJsRBD844=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
|
||||
Reference in New Issue
Block a user