From 5573ccee5377e08a2ea7fbc26ba594cb9d516b78 Mon Sep 17 00:00:00 2001 From: Valentin Volkl Date: Sat, 24 Sep 2022 22:52:14 +0200 Subject: [PATCH] py-colorcet: add new package (#31597) * py-colorcet: add new package * style * py-colorcet: depend on python 2.7: * address pr review comments * address pr review comments * style --- .../builtin/packages/py-colorcet/package.py | 24 +++++++++++++++++++ .../repos/builtin/packages/py-pyct/package.py | 21 ++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-colorcet/package.py create mode 100644 var/spack/repos/builtin/packages/py-pyct/package.py diff --git a/var/spack/repos/builtin/packages/py-colorcet/package.py b/var/spack/repos/builtin/packages/py-colorcet/package.py new file mode 100644 index 0000000000..fe200c7efb --- /dev/null +++ b/var/spack/repos/builtin/packages/py-colorcet/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 PyColorcet(PythonPackage): + """A collection of perceptually acccurate 256-color colormaps for use with + Python plotting programs like Bokeh, Matplotlib, HoloViews, and Datashader.""" + + homepage = "https://colorcet.holoviz.org/index.html" + pypi = "colorcet/colorcet-3.0.0.tar.gz" + + maintainers = ["vvolkl"] + + version("3.0.0", sha256="21c522346a7aa81a603729f2996c22ac3f7822f4c8c303c59761e27d2dfcf3db") + + depends_on("python@2.7:", type=("build", "run")) + depends_on("py-setuptools@30.3.0:", type="build") + depends_on("py-param@1.7.0:", type=("build", "run")) + depends_on("py-pyct@0.4.4:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-pyct/package.py b/var/spack/repos/builtin/packages/py-pyct/package.py new file mode 100644 index 0000000000..b448d11bdd --- /dev/null +++ b/var/spack/repos/builtin/packages/py-pyct/package.py @@ -0,0 +1,21 @@ +# 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 PyPyct(PythonPackage): + """Python package common tasks for users (e.g. copy examples, fetch data, ...)""" + + pypi = "pyct/pyct-0.4.8.tar.gz" + + maintainers = ["vvolkl"] + + version("0.4.8", sha256="23d7525b5a1567535c093aea4b9c33809415aa5f018dd77f6eb738b1226df6f7") + + depends_on("python@2.7:", type=("build", "run")) + depends_on("py-setuptools@30.3.0:", type="build") + depends_on("py-param@1.7.0:", type=("build", "run"))