diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2023-02-17 05:35:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-17 04:35:34 -0800 |
commit | 983c68cc30be337bfcd1711bb0b95431fefbb2e1 (patch) | |
tree | ab6ce2f02e3e5d017518711d50b4ad9602c12976 /var | |
parent | 7d8d538a710978c5f58838538de26e5f36e3fe15 (diff) | |
download | spack-983c68cc30be337bfcd1711bb0b95431fefbb2e1.tar.gz spack-983c68cc30be337bfcd1711bb0b95431fefbb2e1.tar.bz2 spack-983c68cc30be337bfcd1711bb0b95431fefbb2e1.tar.xz spack-983c68cc30be337bfcd1711bb0b95431fefbb2e1.zip |
py-pyinstrument: add v4.4.0 (#35525)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-pyinstrument/package.py | 23 |
1 files changed, 17 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/py-pyinstrument/package.py b/var/spack/repos/builtin/packages/py-pyinstrument/package.py index 16b56c527a..7fbba50ff0 100644 --- a/var/spack/repos/builtin/packages/py-pyinstrument/package.py +++ b/var/spack/repos/builtin/packages/py-pyinstrument/package.py @@ -12,13 +12,24 @@ class PyPyinstrument(PythonPackage): homepage = "https://github.com/joerick/pyinstrument" pypi = "pyinstrument/pyinstrument-4.0.3.tar.gz" + version("4.4.0", sha256="be34a2e8118c14a616a64538e02430d9099d5d67d8a370f2888e4ac71e52bbb7") version("4.0.3", sha256="08caf41d21ae8f24afe79c664a34af1ed1e17aa5d4441cd9b1dc15f87bbbac95") version("3.1.3", sha256="353c7000a6563b16c0be0c6a04104d42b3154c5cd7c1979ab66efa5fdc5f5571") version("3.1.0", sha256="10c1fed4996a72c3e1e2bac1940334756894dbd116df3cc3b2d9743f2ae43016") - depends_on("python@3.7:", when="@4:", type=("build", "run")) - depends_on("python@3.6:", when="@3.3:3.4", type=("build", "run")) - depends_on("py-setuptools", type=("build", "run")) - depends_on("py-pytest-runner", when="@:3.1.3", type="build") - depends_on("npm", when="@:3", type="build") - depends_on("py-pyinstrument-cext@0.2.2:", when="@:3", type=("build", "run")) + variant("jupyter", default=False, description="Support Jupyter/IPython magic", when="@4.1:") + + depends_on("py-setuptools", type="build") + depends_on("py-ipython", when="+jupyter", type=("build", "run")) + + # Historical dependencies + with when("@3"): + depends_on("py-pytest-runner", type="build") + depends_on("npm", type="build") + depends_on("py-pyinstrument-cext@0.2.2:", type=("build", "run")) + + @property + def skip_modules(self): + if self.spec.satisfies("~jupyter"): + return ["pyinstrument.magic"] + return [] |