From 299066feb5fcf98a899da74dcefb16faa2fc3417 Mon Sep 17 00:00:00 2001
From: Christian Glusa <cgcgcg@users.noreply.github.com>
Date: Tue, 11 Jul 2023 10:50:41 -0600
Subject: Py-PyNucleus: Update dependencies, enable parallel build (#38779)

---
 var/spack/repos/builtin/packages/py-pynucleus/package.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/var/spack/repos/builtin/packages/py-pynucleus/package.py b/var/spack/repos/builtin/packages/py-pynucleus/package.py
index aa5636a2c3..c4f2f82b7a 100644
--- a/var/spack/repos/builtin/packages/py-pynucleus/package.py
+++ b/var/spack/repos/builtin/packages/py-pynucleus/package.py
@@ -19,8 +19,9 @@ class PyPynucleus(PythonPackage):
     for ref in refs:
         version(ref, branch=ref)
 
+    depends_on("python@3.10:", type=("build", "run"))
     depends_on("py-mpi4py@2.0.0:", type=("build", "link", "run"))
-    depends_on("py-cython", type=("build", "run"))
+    depends_on("py-cython@0.29.32:", type=("build", "run"))
     depends_on("py-numpy", type=("build", "link", "run"))
     depends_on("py-scipy", type=("build", "link", "run"))
     depends_on("metis", type=("build", "link", "run"))
@@ -29,7 +30,7 @@ class PyPynucleus(PythonPackage):
     depends_on("py-h5py", type=("build", "run"))
     depends_on("py-tabulate", type=("build", "run"))
     depends_on("py-pyyaml", type=("build", "run"))
-    depends_on("py-matplotlib", type=("build", "run"))
+    depends_on("py-matplotlib+latex", type=("build", "run"))
     depends_on("py-scikit-sparse", type=("build", "run"))
     depends_on("py-modepy", type=("build", "run"))
     depends_on("py-meshpy", type=("build", "run"))
@@ -48,6 +49,9 @@ class PyPynucleus(PythonPackage):
         "PyNucleus-nl",
     ]
 
+    def setup_build_environment(self, env):
+        env.set("PYNUCLEUS_BUILD_PARALLELISM", make_jobs)
+
     @run_before("install")
     def install_python(self):
         prefix = self.prefix
-- 
cgit v1.2.3-70-g09d2