summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlli Lupton <oliver.lupton@epfl.ch>2022-02-14 11:20:29 +0100
committerGitHub <noreply@github.com>2022-02-14 03:20:29 -0700
commitdc57f987a79545f71a7b5f233a6c5cb853fc6b46 (patch)
treeffcf7815394996c967bd8ac26d5d7695065d74eb
parentaa6e725633ea7cb74fad9710ee4ca8e0a3f01593 (diff)
downloadspack-dc57f987a79545f71a7b5f233a6c5cb853fc6b46.tar.gz
spack-dc57f987a79545f71a7b5f233a6c5cb853fc6b46.tar.bz2
spack-dc57f987a79545f71a7b5f233a6c5cb853fc6b46.tar.xz
spack-dc57f987a79545f71a7b5f233a6c5cb853fc6b46.zip
py-{mizani,plotnine}: add packages. (#28841)
* py-{mizani,plotnine}: add packages. * Add missing python dependency.
-rw-r--r--var/spack/repos/builtin/packages/py-mizani/package.py24
-rw-r--r--var/spack/repos/builtin/packages/py-plotnine/package.py29
2 files changed, 53 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-mizani/package.py b/var/spack/repos/builtin/packages/py-mizani/package.py
new file mode 100644
index 0000000000..2d72991971
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-mizani/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.directives import depends_on, version
+
+
+class PyMizani(PythonPackage):
+ """Mizani is a scales package for graphics. It is based on Hadley Wickham's
+ Scales package."""
+
+ pypi = "mizani/mizani-0.7.3.tar.gz"
+
+ version(
+ "0.7.3",
+ sha256="f521300bd29ca918fcd629bc8ab50fa04e41bdbe00f6bcf74055d3c6273770a4",
+ )
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on("py-matplotlib@3.1.1:", type=("build", "run"))
+ depends_on("py-numpy", type=("build", "run"))
+ depends_on("py-palettable", type=("build", "run"))
+ depends_on("py-pandas@1.1.0:", type=("build", "run"))
+ depends_on("py-setuptools", type="build")
diff --git a/var/spack/repos/builtin/packages/py-plotnine/package.py b/var/spack/repos/builtin/packages/py-plotnine/package.py
new file mode 100644
index 0000000000..3ccb7bb9bc
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-plotnine/package.py
@@ -0,0 +1,29 @@
+# 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.directives import depends_on, version
+
+
+class PyPlotnine(PythonPackage):
+ """plotnine is an implementation of a grammar of graphics in Python, it is
+ based on ggplot2. The grammar allows users to compose plots by explicitly
+ mapping data to the visual objects that make up the plot."""
+
+ pypi = "plotnine/plotnine-0.8.0.tar.gz"
+
+ version(
+ "0.8.0",
+ sha256="39de59edcc28106761b65238647d0b1f6212ea7f3a78f8be0b846616db969276",
+ )
+
+ depends_on('python@3.6:', type=('build', 'run'))
+ depends_on("py-descartes@1.1.0:", type=("build", "run"))
+ depends_on("py-matplotlib@3.1.1:", type=("build", "run"))
+ depends_on("py-mizani@0.7.3:", type=("build", "run"))
+ depends_on("py-numpy@1.19.0:", type=("build", "run"))
+ depends_on("py-pandas@1.1.0:", type=("build", "run"))
+ depends_on("py-patsy@0.5.1:", type=("build", "run"))
+ depends_on("py-scipy@1.5.0:", type=("build", "run"))
+ depends_on("py-setuptools", type="build")
+ depends_on("py-statsmodels@0.12.1:", type=("build", "run"))