summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-python-louvain/package.py21
-rw-r--r--var/spack/repos/builtin/packages/py-torch-cluster/package.py1
-rw-r--r--var/spack/repos/builtin/packages/py-torch-geometric/package.py2
-rw-r--r--var/spack/repos/builtin/packages/py-torch-sparse/package.py1
4 files changed, 25 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'))
diff --git a/var/spack/repos/builtin/packages/py-torch-cluster/package.py b/var/spack/repos/builtin/packages/py-torch-cluster/package.py
index 29b9773f54..d3c965f797 100644
--- a/var/spack/repos/builtin/packages/py-torch-cluster/package.py
+++ b/var/spack/repos/builtin/packages/py-torch-cluster/package.py
@@ -14,6 +14,7 @@ class PyTorchCluster(PythonPackage):
homepage = "https://github.com/rusty1s/pytorch_cluster"
url = "https://github.com/rusty1s/pytorch_cluster/archive/1.5.7.tar.gz"
+ version('1.5.8', sha256='95c6e81e9c4a6235e1b2152ab917021d2060ad995199f6bd7fb39986d37310f0')
version('1.5.7', sha256='71701d2f7f3e458ebe5904c982951349fdb60e6f1654e19c7e102a226e2de72e')
variant('cuda', default=False, description='Enables CUDA support')
diff --git a/var/spack/repos/builtin/packages/py-torch-geometric/package.py b/var/spack/repos/builtin/packages/py-torch-geometric/package.py
index ebb6e56769..95fd361020 100644
--- a/var/spack/repos/builtin/packages/py-torch-geometric/package.py
+++ b/var/spack/repos/builtin/packages/py-torch-geometric/package.py
@@ -18,6 +18,7 @@ class PyTorchGeometric(PythonPackage):
homepage = "https://github.com/rusty1s/pytorch_geometric"
url = "https://github.com/rusty1s/pytorch_geometric/archive/1.6.0.tar.gz"
+ version('1.6.3', sha256='1907c0f5eb7ab8f6f79a7e43703579b39b514501dd956ed0fc3d33210bcbb4c2')
version('1.6.0', sha256='7d5231cdcc2ebd4444f406cbf1537eb49bf90ab6f446eaf1b7af5cdbe105f3c9')
variant('cuda', default=False, description="Enable CUDA support")
@@ -32,6 +33,7 @@ class PyTorchGeometric(PythonPackage):
depends_on('py-networkx', type=('build', 'run'))
depends_on('py-scikit-learn', type=('build', 'run'))
depends_on('py-numba', type=('build', 'run'))
+ depends_on('py-python-louvain', type=('build', 'run'), when='@1.6.2:')
depends_on('py-requests', type=('build', 'run'))
depends_on('py-pandas', type=('build', 'run'))
depends_on('py-rdflib', type=('build', 'run'))
diff --git a/var/spack/repos/builtin/packages/py-torch-sparse/package.py b/var/spack/repos/builtin/packages/py-torch-sparse/package.py
index 32d390315d..28d20685a1 100644
--- a/var/spack/repos/builtin/packages/py-torch-sparse/package.py
+++ b/var/spack/repos/builtin/packages/py-torch-sparse/package.py
@@ -13,6 +13,7 @@ class PyTorchSparse(PythonPackage):
homepage = "https://github.com/rusty1s/pytorch_sparse/"
url = "https://github.com/rusty1s/pytorch_sparse/archive/0.6.7.tar.gz"
+ version('0.6.8', sha256='98f7ff1f0f9cd5031bc81c70c11970c3864545ae33677025a6efd2466a97e6f9')
version('0.6.7', sha256='0d038a1502548692972a085cd0496460b5d2050bb7328427add990f081d6c44d')
variant('cuda', default=False, description="Enable CUDA support")