diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2026-01-18 15:57:43 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:30 +0100 |
| commit | 017ecad9d9648f5e466e988b5c88ca7a2e13bba0 (patch) | |
| tree | da3f4e112a7551e7d59a07fd5149a1616cac4f29 | |
| parent | 8c8ef5f197aea98a6e51acd9a7fe635f20df92cf (diff) | |
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 <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 2e296081302..caa7c2b97a9 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26913,36 +26913,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 |
