Adding recipes for py-qutip and py-qutip-qip (#34835)

* added recipes for py-qutip and py-qutip-qip

* small fix

* updated qutip 2x versions

* py-qutip-qip: tarball url from github

* style fix in py-qutip-qip

* Update var/spack/repos/builtin/packages/py-qutip-qip/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-qutip-qip/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-qutip-qip/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-qutip/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

* Update var/spack/repos/builtin/packages/py-qutip/package.py

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>

Co-authored-by: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Marco De La Pierre 2023-01-07 09:22:03 +08:00 committed by GitHub
parent a5ef522f98
commit 86e346e906
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 51 additions and 0 deletions

View File

@ -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"))

View File

@ -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"))