diff options
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 851917c26db..b55dfcd7fd7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -29491,23 +29491,28 @@ user-space file systems in Python.") | |||
| 29491 | ("catch" ,catch2-1) | 29491 | ("catch" ,catch2-1) |
| 29492 | ("eigen" ,eigen))) | 29492 | ("eigen" ,eigen))) |
| 29493 | (arguments | 29493 | (arguments |
| 29494 | `(#:configure-flags | 29494 | (list |
| 29495 | (list (string-append "-DCATCH_INCLUDE_DIR=" | 29495 | #:configure-flags |
| 29496 | (assoc-ref %build-inputs "catch") | 29496 | #~(list (string-append "-DCATCH_INCLUDE_DIR=" |
| 29497 | "/include/catch")) | 29497 | (assoc-ref %build-inputs "catch") |
| 29498 | 29498 | "/include/catch")) | |
| 29499 | #:phases (modify-phases %standard-phases | 29499 | #:modules '((guix build cmake-build-system) |
| 29500 | (add-after 'install 'install-python | 29500 | ((guix build gnu-build-system) #:prefix gnu:) |
| 29501 | (lambda* (#:key outputs #:allow-other-keys) | 29501 | (guix build utils)) |
| 29502 | (let ((out (assoc-ref outputs "out"))) | 29502 | #:phases |
| 29503 | (with-directory-excursion "../source" | 29503 | #~(modify-phases %standard-phases |
| 29504 | (setenv "PYBIND11_USE_CMAKE" "yes") | 29504 | (replace 'check |
| 29505 | (invoke "python" "setup.py" "install" | 29505 | (lambda* (#:rest args) |
| 29506 | "--single-version-externally-managed" | 29506 | (apply (assoc-ref gnu:%standard-phases 'check) args))) |
| 29507 | "--root=/" | 29507 | (add-after 'install 'install-python |
| 29508 | (string-append "--prefix=" out))))))) | 29508 | (lambda* (#:key outputs #:allow-other-keys) |
| 29509 | 29509 | (let ((out (assoc-ref outputs "out"))) | |
| 29510 | #:test-target "check")) | 29510 | (with-directory-excursion "../source" |
| 29511 | (setenv "PYBIND11_USE_CMAKE" "yes") | ||
| 29512 | (invoke "python" "setup.py" "install" | ||
| 29513 | "--single-version-externally-managed" | ||
| 29514 | "--root=/" | ||
| 29515 | (string-append "--prefix=" out))))))))) | ||
| 29511 | (home-page "https://github.com/pybind/pybind11/") | 29516 | (home-page "https://github.com/pybind/pybind11/") |
| 29512 | (synopsis "Seamless operability between C++11 and Python") | 29517 | (synopsis "Seamless operability between C++11 and Python") |
| 29513 | (description | 29518 | (description |
