guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 63e8327a3ec7622f277462eb3934b3b8a21d3951
Author: Sharlatan Hellseher <[email protected]>
AuthorDate: Sat May 30 15:18:23 2026 +0100
gnu: pybind11-2: Inherit from pybind11.
* gnu/packages/python-xyz.scm (pybind11-2): Inherit from pybind11.
Change-Id: I52779e60aa2c2bd34675e280874c690499cd2a9c
---
gnu/packages/python-xyz.scm | 67 ++++++++++++++++++++-------------------------
1 file changed, 30 insertions(+), 37 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 0d9a56e5d6..8197945a8a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27851,18 +27851,18 @@ commit, but it also includes some other useful
statistics.")
binding is created using the standard @code{ctypes} library.")
(license license:isc)))
-(define-public pybind11-2
+(define-public pybind11
(package
(name "pybind11")
- (version "2.13.6")
+ (version "3.0.2")
(source (origin
(method git-fetch)
(uri (git-reference
- (url "https://github.com/pybind/pybind11")
- (commit (string-append "v" version))))
+ (url "https://github.com/pybind/pybind11")
+ (commit (string-append "v" version))))
(sha256
(base32
- "1dbnki0pnky39kr04afd9ks597bzjc530zbk33jjss53nfvdvlj8"))
+ "1ad4fnn4p2m3sradxxd9wfnll3pa44aw081b6ssh3pq95xqpwksg"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
(arguments
@@ -27879,20 +27879,20 @@ binding is created using the standard @code{ctypes}
library.")
(replace 'check
(lambda args
(apply (assoc-ref gnu:%standard-phases 'check) args)))
- (add-after 'install 'install-python
+ (add-after 'install 'build-python-library
(lambda _
(with-directory-excursion "../source"
(setenv "PYBIND11_USE_CMAKE" "yes")
- (invoke "python" "setup.py" "install"
- "--single-version-externally-managed"
- "--root=/"
- (string-append "--prefix=" #$output))))))))
+ (invoke "pip" "install" "--no-deps" "--no-build-isolation"
+ "--prefix" #$output ".")))))))
+ (inputs (list boost))
(native-inputs
(list catch2-1
eigen
python-pytest
python-setuptools
- python-wrapper))
+ python-wrapper
+ python-scikit-build-core))
(home-page "https://github.com/pybind/pybind11/")
(synopsis "Seamless operability between C++11 and Python")
(description
@@ -27903,19 +27903,20 @@ library: to minimize boilerplate code in traditional
extension modules by
inferring type information using compile-time introspection.")
(license license:bsd-3)))
-(define-public pybind11
+(define-public pybind11-2
(package
+ (inherit pybind11)
(name "pybind11")
- (version "3.0.2")
- (source (origin
- (method git-fetch)
- (uri (git-reference
- (url "https://github.com/pybind/pybind11")
- (commit (string-append "v" version))))
- (sha256
- (base32
- "1ad4fnn4p2m3sradxxd9wfnll3pa44aw081b6ssh3pq95xqpwksg"))
- (file-name (git-file-name name version))))
+ (version "2.13.6")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/pybind/pybind11")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1dbnki0pnky39kr04afd9ks597bzjc530zbk33jjss53nfvdvlj8"))))
(build-system cmake-build-system)
(arguments
(list
@@ -27931,29 +27932,21 @@ inferring type information using compile-time
introspection.")
(replace 'check
(lambda args
(apply (assoc-ref gnu:%standard-phases 'check) args)))
- (add-after 'install 'build-python-library
+ (add-after 'install 'install-python
(lambda _
(with-directory-excursion "../source"
(setenv "PYBIND11_USE_CMAKE" "yes")
- (invoke "pip" "install" "--no-deps" "--no-build-isolation"
- "--prefix" #$output ".")))))))
- (inputs (list boost))
+ (invoke "python" "setup.py" "install"
+ "--single-version-externally-managed"
+ "--root=/"
+ (string-append "--prefix=" #$output))))))))
(native-inputs
(list catch2-1
eigen
python-pytest
python-setuptools
- python-wrapper
- python-scikit-build-core))
- (home-page "https://github.com/pybind/pybind11/")
- (synopsis "Seamless operability between C++11 and Python")
- (description
- "@code{pybind11} is a lightweight header-only library that exposes C++
-types in Python and vice versa, mainly to create Python bindings of existing
-C++ code. Its goals and syntax are similar to the @code{Boost.Python}
-library: to minimize boilerplate code in traditional extension modules by
-inferring type information using compile-time introspection.")
- (license license:bsd-3)))
+ python-wrapper))
+ (inputs '())))
(define-public python-pooch
(package