diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2023-12-20 16:01:43 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2023-12-21 22:42:45 +0100 |
| commit | 763703961ac91db2ebbb26d96ce20292a20594e5 (patch) | |
| tree | b2f3c86e58346dc25a4b95f82268366e4d41bc8f | |
| parent | 5f9743ca6382a5db10892040f7418d56c001ec0f (diff) | |
pybind11@2.6: Skip test that fails with Python 3.10.
* guix-science/packages/python.scm (pybind11-2.6.1)[arguments]: New
phase.
| -rw-r--r-- | guix-science/packages/python.scm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/guix-science/packages/python.scm b/guix-science/packages/python.scm index df03161..0a5aaa1 100644 --- a/guix-science/packages/python.scm +++ b/guix-science/packages/python.scm | |||
| @@ -212,7 +212,20 @@ lots of nifty extra stuff on top.") | |||
| 212 | (sha256 | 212 | (sha256 |
| 213 | (base32 | 213 | (base32 |
| 214 | "1wh5b1xnywzxwxkyac2wvyqwzmy1qxs341jjk820r7b825wn6yad")) | 214 | "1wh5b1xnywzxwxkyac2wvyqwzmy1qxs341jjk820r7b825wn6yad")) |
| 215 | (file-name (git-file-name name version)))))) | 215 | (file-name (git-file-name name version)))) |
| 216 | (arguments | ||
| 217 | (substitute-keyword-arguments (package-arguments pybind11) | ||
| 218 | ((#:phases phases #~%standard-phases) | ||
| 219 | #~(modify-phases #$phases | ||
| 220 | (add-after 'unpack 'skip-failing-test | ||
| 221 | (lambda _ | ||
| 222 | (substitute* "tests/test_exceptions.py" | ||
| 223 | ;; This test fails with Python 3.10; skip it. | ||
| 224 | (("^def test_python_alreadyset_in_destructor(.*)" _ rest) | ||
| 225 | (string-append | ||
| 226 | "def test_python_alreadyset_in_destructor" | ||
| 227 | rest "\n" | ||
| 228 | " return\n"))))))))))) | ||
| 216 | 229 | ||
| 217 | (define-public python-nmslib | 230 | (define-public python-nmslib |
| 218 | (package | 231 | (package |
