diff options
-rw-r--r-- | var/spack/repos/builtin/packages/py-qutip-qip/package.py | 27 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-qutip/package.py | 24 |
2 files changed, 51 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-qutip-qip/package.py b/var/spack/repos/builtin/packages/py-qutip-qip/package.py new file mode 100644 index 0000000000..3df90a80ed --- /dev/null +++ b/var/spack/repos/builtin/packages/py-qutip-qip/package.py @@ -0,0 +1,27 @@ +# Copyright 2013-2022 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) + + +from spack.package import * + + +class PyQutipQip(PythonPackage): + """The QuTiP quantum information processing package""" + + homepage = "https://github.com/qutip/qutip-qip" + url = "https://github.com/qutip/qutip-qip/archive/refs/tags/v0.2.2.tar.gz" + # using github for now, because pypi tarball is missing the VERSION file + # pypi = "qutip-qip/qutip-qip-0.2.2.tar.gz" + + version("0.2.3", sha256="a6a3a549cf6983e3ecef2cf07d00be83c146321fb588e250a49d020788a4e590") + version("0.2.2", sha256="4a9c79bb31c2fb2c72428764b2a5f6d8b1c667cebc8257cce1395c7e87d11217") + + depends_on("py-setuptools@42:", type="build") + depends_on("py-packaging", type=("build", "run")) + + depends_on("py-numpy@1.16.6:", type=("build", "run")) + depends_on("py-scipy@1.0:", type=("build", "run")) + + depends_on("py-qutip@4.6:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-qutip/package.py b/var/spack/repos/builtin/packages/py-qutip/package.py new file mode 100644 index 0000000000..f30bd44bf9 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-qutip/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2022 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) + + +from spack.package import * + + +class PyQutip(PythonPackage): + """QuTiP: The Quantum Toolbox in Python""" + + homepage = "https://qutip.org/" + pypi = "qutip/qutip-4.7.0.tar.gz" + + version("4.7.1", sha256="9a87178e68b145c2145b526caa943ccc8400a111325ced45bd17f9b893663af2") + version("4.7.0", sha256="a9dde64457991ef1c5a7d4186b5348a16a71480a610f1c0902e4d656ddc12e31") + + depends_on("py-setuptools", type="build") + depends_on("py-packaging", type=("build", "run")) + + depends_on("py-cython@0.29.20:", type="build") + depends_on("py-numpy@1.16.6:", type=("build", "run")) + depends_on("py-scipy@1.0:", type=("build", "run")) |