From 02b4dc1b34f012e5aff420fd6de57856b4999d3d Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Sat, 13 Dec 2025 11:37:24 +0000 Subject: [PATCH] gnu: python-annoy: Add python-h5py. * gnu/packages/python-xyz.scm (python-annoy)[arguments]: Skip 3 tests requiring network access. [native-inputs]: Add python-h5py. Change-Id: I6cd3343d43b0f91ddf6c117844afa6ba1e662068 Signed-off-by: Rutherther --- gnu/packages/python-xyz.scm | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index fe05208be05693b566b31aa05e95d8238101e313..1fc6c83e1175c0e4504296dd636fd992770e6c02 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28546,7 +28546,7 @@ and dates in \"human readable\" forms. For example, it would display (version "1.17.3") (source (origin - (method git-fetch) ;no tests in PyPI archive + (method git-fetch) (uri (git-reference (url "https://github.com/spotify/annoy") (commit (string-append "v" version)))) @@ -28555,10 +28555,15 @@ and dates in \"human readable\" forms. For example, it would display (base32 "1zmdp1dws3i35a0psb10k6rkh3iaiq8s9ybxibvfjihbapidd4d0")))) (build-system pyproject-build-system) (arguments - ;; Requires python-h5py - (list #:test-flags #~(list "--ignore=test/accuracy_test.py"))) + (list + #:test-flags + ;; urllib.error.URLError: + #~(list "--deselect=test/accuracy_test.py::test_glove_25" + "--deselect=test/accuracy_test.py::test_nytimes_16" + "--deselect=test/accuracy_test.py::test_fashion_mnist"))) (native-inputs - (list ;; python-h5py + (list python-h5py python-numpy python-pytest python-setuptools))