summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-python-louvain/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-python-louvain/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-python-louvain/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-python-louvain/package.py b/var/spack/repos/builtin/packages/py-python-louvain/package.py
new file mode 100644
index 0000000000..7e49f607e6
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-python-louvain/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+
+class PyPythonLouvain(PythonPackage):
+ """This module implements community detection.
+ It uses the louvain method described in Fast unfolding of communities
+ in large networks, Vincent D Blondel, Jean-Loup Guillaume, Renaud
+ Lambiotte, Renaud Lefebvre, Journal of Statistical Mechanics: Theory
+ and Experiment 2008(10), P10008 (12pp) """
+
+ homepage = "https://github.com/taynaud/python-louvain"
+ pypi = "python-louvain/python-louvain-0.14.tar.gz"
+
+ version('0.15', sha256='2a856edfbe29952a60a5538a84bb78cca18f6884a88b9325e85a11c8dd4917eb')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-numpy', type=('build', 'run'))
+ depends_on('py-networkx', type=('build', 'run'))