mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-31 23:06:59 +01:00
gnu: python-louvain-0.6: Update to 0.7.1.
* gnu/packages/graph.scm (python-louvain-0.6): Update to 0.7.1. [arguments]: Add build phases 'find-igraph and 'pretend-version. [native-inputs]: Add python-setuptools-scm and python-wheel. Rename this variable... (python-louvain-0.7): ...to this, naturally. * gnu/packages/bioinformatics.scm (python-scanpy)[propagated-inputs]: Update reference to python-louvain-0.6.
This commit is contained in:
parent
90b6b857fd
commit
cd4bf5ecb4
2 changed files with 26 additions and 5 deletions
|
@ -12027,7 +12027,7 @@ (define-public python-scanpy
|
||||||
python-igraph
|
python-igraph
|
||||||
python-joblib
|
python-joblib
|
||||||
python-legacy-api-wrap
|
python-legacy-api-wrap
|
||||||
python-louvain-0.6
|
python-louvain-0.7
|
||||||
python-matplotlib
|
python-matplotlib
|
||||||
python-natsort
|
python-natsort
|
||||||
python-networkx
|
python-networkx
|
||||||
|
|
|
@ -55,6 +55,7 @@ (define-module (gnu packages graph)
|
||||||
#:use-module (gnu packages ncurses)
|
#:use-module (gnu packages ncurses)
|
||||||
#:use-module (gnu packages pkg-config)
|
#:use-module (gnu packages pkg-config)
|
||||||
#:use-module (gnu packages python)
|
#:use-module (gnu packages python)
|
||||||
|
#:use-module (gnu packages python-build)
|
||||||
#:use-module (gnu packages python-science)
|
#:use-module (gnu packages python-science)
|
||||||
#:use-module (gnu packages python-web)
|
#:use-module (gnu packages python-web)
|
||||||
#:use-module (gnu packages python-xyz)
|
#:use-module (gnu packages python-xyz)
|
||||||
|
@ -298,10 +299,10 @@ (define-public python-louvain
|
||||||
algorithm for community detection in large networks.")
|
algorithm for community detection in large networks.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-louvain-0.6
|
(define-public python-louvain-0.7
|
||||||
(package
|
(package
|
||||||
(name "python-louvain")
|
(name "python-louvain")
|
||||||
(version "0.6.1")
|
(version "0.7.1")
|
||||||
;; The tarball on Pypi does not include the tests.
|
;; The tarball on Pypi does not include the tests.
|
||||||
(source (origin
|
(source (origin
|
||||||
(method git-fetch)
|
(method git-fetch)
|
||||||
|
@ -311,14 +312,34 @@ (define-public python-louvain-0.6
|
||||||
(file-name (git-file-name name version))
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0w31537sifkf65sck1iaip5i6d8g64pa3wdwad83d6p9jwkck57k"))))
|
"1g6b5c2jgwagnhnqh859g61h7x6a81d8hm3g6mkin6kzwafww3g2"))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
|
(arguments
|
||||||
|
(list
|
||||||
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'pretend-version
|
||||||
|
;; The version string is usually derived via setuptools-scm, but
|
||||||
|
;; without the git metadata available this fails.
|
||||||
|
(lambda _
|
||||||
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
|
||||||
|
(add-before 'build 'find-igraph
|
||||||
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
(setenv "IGRAPH_EXTRA_INCLUDE_PATH"
|
||||||
|
(string-append (assoc-ref inputs "igraph")
|
||||||
|
"/include/igraph:"
|
||||||
|
(getenv "C_INCLUDE_PATH")))
|
||||||
|
(setenv "IGRAPH_EXTRA_LIBRARY_PATH"
|
||||||
|
(getenv "LIBRARY_PATH")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
(list python-ddt python-igraph))
|
(list python-ddt python-igraph))
|
||||||
(inputs
|
(inputs
|
||||||
(list igraph))
|
(list igraph))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list pkg-config python-pytest))
|
(list pkg-config
|
||||||
|
python-pytest
|
||||||
|
python-setuptools-scm
|
||||||
|
python-wheel))
|
||||||
(home-page "https://github.com/vtraag/louvain-igraph")
|
(home-page "https://github.com/vtraag/louvain-igraph")
|
||||||
(synopsis "Algorithm for methods of community detection in large networks")
|
(synopsis "Algorithm for methods of community detection in large networks")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue