From 15efd5a7f41c9282fd2a61f51df2765383ca4cb0 Mon Sep 17 00:00:00 2001 From: Greg Hogan Date: Fri, 19 Jan 2024 16:47:24 +0000 Subject: gnu: python-graph-tool: Update to 2.59. * gnu/packages/graph.scm (python-graph-tool): Update to 2.59. Signed-off-by: Sharlatan Hellseher Change-Id: I08ecb5fe76183fa980fedf2408fc1df93ebbc63d --- gnu/packages/graph.scm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gnu/packages/graph.scm') diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 0424c2818a..9dfe2efbc9 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -727,7 +727,7 @@ (define-public mscgen (define-public python-graph-tool (package (name "python-graph-tool") - (version "2.58") + (version "2.59") (source (origin (method url-fetch) (uri (string-append @@ -735,7 +735,7 @@ (define-public python-graph-tool version ".tar.bz2")) (sha256 (base32 - "05vsk2600wn790hk7gr2f0609bzcslyhhv9x157n43vxy4y6r8vj")))) + "1bmck5fcihj9lr5kd8x624bdi9xhfc13pl4mwzv74jr5lz07kr6d")))) (build-system gnu-build-system) (arguments `(#:imported-modules (,@%gnu-build-system-modules -- cgit v1.2.3 From 123c880fe94c0a75de9798fcc99129af59f23b8c Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 23 Jan 2024 12:21:12 +0100 Subject: gnu: Add python-pygsp. * gnu/packages/graph.scm (python-pygsp): New variable. Change-Id: I8dd195216617e5cdb4a7453ecbe23cd9ff9e06a3 --- gnu/packages/graph.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) (limited to 'gnu/packages/graph.scm') diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 9dfe2efbc9..6411afd9e0 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -64,6 +64,7 @@ (define-module (gnu packages graph) #:use-module (gnu packages pretty-print) #:use-module (gnu packages python) #:use-module (gnu packages python-build) + #:use-module (gnu packages python-check) #:use-module (gnu packages python-compression) #:use-module (gnu packages python-science) #:use-module (gnu packages python-web) @@ -468,6 +469,43 @@ (define-public python-louvain-igraph algorithm for a number of different methods.") (license license:gpl3+))) +(define-public python-pygsp + (package + (name "python-pygsp") + (version "0.5.1") + (source + (origin + (method url-fetch) + (uri (pypi-uri "PyGSP" version)) + (sha256 + (base32 "002q4z3p3ka81rzhgi66qqmz1ccrg9hwch4bax7jsqixg64asx28")))) + (build-system pyproject-build-system) + (arguments + (list + #:test-flags + ;; These all fail due to a type error in scipy. + '(list "-k" (string-append "not test_bunny" + " and not test_lowstretchtree" + " and not test_nngraph" + " and not test_plot_graphs" + " and not test_randomregular")) + #:phases + '(modify-phases %standard-phases + (add-after 'unpack 'disable-doctests + (lambda _ + (substitute* "pygsp/tests/test_all.py" + (("def test_docstrings.*") "def _disabled_test_docstrings():\n") + (("return doctest.DocFileSuite.*") "return False\n") + (("suites.append\\(test_docstrings.*") + ""))))))) + (propagated-inputs (list python-numpy python-scikit-image python-scipy)) + (native-inputs (list python-coverage python-coveralls python-flake8)) + (home-page "https://github.com/epfl-lts2/pygsp") + (synopsis "Graph Signal Processing in Python") + (description "The PyGSP is a Python package to ease signal processing on +graphs.") + (license license:bsd-3))) + (define-public faiss (package (name "faiss") -- cgit v1.2.3 From 1bdc4eeb46f97a313aaa1d480528a86458980807 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 23 Jan 2024 13:25:02 +0100 Subject: gnu: Add python-graphtools. * gnu/packages/graph.scm (python-graphtools): New variable. Change-Id: If08b1460447702f7ec2e64f013a52a7065076b01 --- gnu/packages/graph.scm | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'gnu/packages/graph.scm') diff --git a/gnu/packages/graph.scm b/gnu/packages/graph.scm index 6411afd9e0..fd684ca77d 100644 --- a/gnu/packages/graph.scm +++ b/gnu/packages/graph.scm @@ -57,6 +57,8 @@ (define-module (gnu packages graph) #:use-module (gnu packages graphics) #:use-module (gnu packages graphviz) #:use-module (gnu packages gtk) + #:use-module (gnu packages linux) + #:use-module (gnu packages machine-learning) #:use-module (gnu packages maths) #:use-module (gnu packages multiprecision) #:use-module (gnu packages ncurses) @@ -427,6 +429,57 @@ (define-public python-vtraag-louvain large networks.") (license license:gpl3+))) +(define-public python-graphtools + (package + (name "python-graphtools") + (version "1.5.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/KrishnaswamyLab/graphtools") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1aaxhij4y5z2vvc34qnb5py6nw3ciz35a3z4lfr223f9kvfpqgak")))) + (build-system pyproject-build-system) + (arguments + (list + #:phases + '(modify-phases %standard-phases + (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"))))))) + (propagated-inputs + (list python-deprecated + python-future + python-numpy + python-pygsp + python-scikit-learn + python-scipy + python-tasklogger)) + (native-inputs + (list util-linux ;for lscpu + python-anndata + python-black + python-coverage + python-coveralls + python-nose + python-nose2 + python-pandas + python-parameterized + python-igraph)) + (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 +graphs in Python.") + (license license:gpl3))) + (define-public python-louvain-igraph (package (name "python-louvain-igraph") -- cgit v1.2.3