From 0f1a5acffed1163ec30c6225efa153b854cb71cf Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Fri, 2 Jan 2026 15:25:36 +0000 Subject: [PATCH] gnu: python-graphtools: Update to 2.1.0. * gnu/packages/graph.scm (python-graphtools): Update to 2.1.0. [arguments]: Remove 'patch-tets; use default 'check; add 'fix-pytest-config. [native-inputs]: Remove util-linux, python-pynose, and python-nose2; add python-pytest and python-setuptools. Change-Id: If5561d5c4de1a9c78e7d4baa7011bd0ad622c4ef --- gnu/packages/graph.scm | 40 +++++++++++++--------------------------- 1 file changed, 13 insertions(+), 27 deletions(-) diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 44cc0a67519..6f1dc1088c1 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -333,38 +333,25 @@ algorithm for community detection in large networks.") (define-public python-graphtools (package (name "python-graphtools") - (version "1.5.3") + (version "2.1.0") (source (origin (method git-fetch) (uri (git-reference - (url "https://github.com/KrishnaswamyLab/graphtools") - (commit (string-append "v" version)))) + (url "https://github.com/KrishnaswamyLab/graphtools") + (commit (string-append "v" version)))) (file-name (git-file-name name version)) (sha256 - (base32 "1aaxhij4y5z2vvc34qnb5py6nw3ciz35a3z4lfr223f9kvfpqgak")))) + (base32 "03zbdaqkg2ply7d0zr75rfjncg6xk45bamn1z6xpaqs9nh69hvk8")))) (build-system pyproject-build-system) (arguments (list + ;; tests: 231 passed, 2 warnings #:phases - '(modify-phases %standard-phases - (add-after 'unpack 'patch-tests - (lambda _ - ;; The warning message has changed in numpy. - (substitute* "test/test_data.py" - (("\"A sparse matrix was passed, but.*array.\",") - "\"Sparse data was passed, but dense data is required. Use '.toarray()' to convert to a dense numpy array.\",") - ;; anndata prints a warning that causes the test to fail. - (("import warnings" m) - (string-append m "\nwarnings.filterwarnings(\"ignore\")"))))) - (replace 'check - (lambda* (#:key tests? #:allow-other-keys) - (when tests? - ;; Incompatibility with sklearn. - ;; 'kNNLandmarkGraph' object has no attribute '_landmark_op' - (delete-file "test/test_landmark.py") - (setenv "LOKY_MAX_CPU_COUNT" "1") - (invoke "nose2" "-v"))))))) + #~(modify-phases %standard-phases + (add-after 'unpack 'fix-pytest-config + (lambda _ + (delete-file "pytest.ini")))))) (propagated-inputs (list python-deprecated python-future @@ -374,13 +361,12 @@ algorithm for community detection in large networks.") python-scipy python-tasklogger)) (native-inputs - (list util-linux ;for lscpu - python-anndata - python-pynose - python-nose2 + (list python-anndata + python-igraph python-pandas python-parameterized - python-igraph)) + python-pytest + python-setuptools)) (home-page "https://github.com/KrishnaswamyLab/graphtools") (synopsis "Tools for building and manipulating graphs in Python") (description "This package provides tools for building and manipulating