guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

39/40: gnu: Add python-graphtools.


From: guix-commits
Subject: 39/40: gnu: Add python-graphtools.
Date: Tue, 23 Jan 2024 07:43:48 -0500 (EST)

rekado pushed a commit to branch master
in repository guix.

commit 1bdc4eeb46f97a313aaa1d480528a86458980807
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jan 23 13:25:02 2024 +0100

    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(+)

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 @@
   #: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 @@ algorithm for community detection in large networks.")
 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")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]