guix_mirror_bot pushed a commit to branch python-team
in repository guix.
commit 23cead54f3c38731b9f8abe005cf9b117cfb5c23
Author: Nicolas Graves <[email protected]>
AuthorDate: Sun Jan 18 15:57:43 2026 +0100
gnu: pybind11: Add python-setuptools native-inputs, improve style.
* gnu/packages/python-xyz.scm (pybind11)
[native-inputs]: Drop labels, add python-setuptools.
[arguments]<#:configure-flags>: Adapt for catch label change.
<#:phases>: Improve style.
Change-Id: I3171c79e079be0ebeda072412b3a9173c61713ff
Signed-off-by: Sharlatan Hellseher <[email protected]>
---
gnu/packages/python-xyz.scm | 34 ++++++++++++++++------------------
1 file changed, 16 insertions(+), 18 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 21ae99aa93..19bd754484 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -26765,36 +26765,34 @@ binding is created using the standard @code{ctypes}
library.")
"1dbnki0pnky39kr04afd9ks597bzjc530zbk33jjss53nfvdvlj8"))
(file-name (git-file-name name version))))
(build-system cmake-build-system)
- (native-inputs
- `(("python" ,python-wrapper)
-
- ;; The following dependencies are used for tests.
- ("python-pytest" ,python-pytest)
- ("catch" ,catch2-1)
- ("eigen" ,eigen)))
(arguments
(list
#:configure-flags
#~(list (string-append "-DCATCH_INCLUDE_DIR="
- (assoc-ref %build-inputs "catch")
- "/include/catch"))
+ (assoc-ref %build-inputs "catch2")
+ "/include/catch"))
#:modules '((guix build cmake-build-system)
((guix build gnu-build-system) #:prefix gnu:)
(guix build utils))
#:phases
#~(modify-phases %standard-phases
(replace 'check
- (lambda* (#:rest args)
+ (lambda args
(apply (assoc-ref gnu:%standard-phases 'check) args)))
(add-after 'install 'install-python
- (lambda* (#:key outputs #:allow-other-keys)
- (let ((out (assoc-ref outputs "out")))
- (with-directory-excursion "../source"
- (setenv "PYBIND11_USE_CMAKE" "yes")
- (invoke "python" "setup.py" "install"
- "--single-version-externally-managed"
- "--root=/"
- (string-append "--prefix=" out)))))))))
+ (lambda _
+ (with-directory-excursion "../source"
+ (setenv "PYBIND11_USE_CMAKE" "yes")
+ (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))
(home-page "https://github.com/pybind/pybind11/")
(synopsis "Seamless operability between C++11 and Python")
(description