diff --git a/var/spack/repos/builtin/packages/py-your/package.py b/var/spack/repos/builtin/packages/py-your/package.py index a0e90fc7bde..f226bff0b31 100644 --- a/var/spack/repos/builtin/packages/py-your/package.py +++ b/var/spack/repos/builtin/packages/py-your/package.py @@ -10,14 +10,14 @@ class PyYour(PythonPackage): """Python library to read and process pulsar data in several different formats""" homepage = "https://github.com/thepetabyteproject/your" - - # pypi tarball has requirements.txt missing url = "https://github.com/thepetabyteproject/your/archive/refs/tags/0.6.7.tar.gz" + git = "https://github.com/thepetabyteproject/your.git" maintainers("aweaver1fandm") license("GPL-3.0") + version("main", branch="main", preferred=True) version("0.6.7", sha256="f2124a630d413621cce067805feb6b9c21c5c8938f41188bd89684968478d814") depends_on("python@3.8:", type=("build", "run")) @@ -25,7 +25,9 @@ class PyYour(PythonPackage): depends_on("py-astropy@6.1.0:", type=("build", "run")) depends_on("py-matplotlib@3.2.1:", type=("build", "run")) - depends_on("py-numpy@1.18.4:", type=("build", "run")) + + depends_on("py-numpy@1.18.4:1.23.5", when="@0.6.7", type=("build", "run")) + depends_on("py-numpy@1.18.4:", when="@main", type=("build", "run")) depends_on("py-h5py@2.10:", type=("build", "run")) depends_on("py-scikit-image@0.14.2:", type=("build", "run")) depends_on("py-scipy@1.3:", type=("build", "run"))