py-{mizani,plotnine}: add packages. (#28841)
* py-{mizani,plotnine}: add packages. * Add missing python dependency.
This commit is contained in:
parent
aa6e725633
commit
dc57f987a7
24
var/spack/repos/builtin/packages/py-mizani/package.py
Normal file
24
var/spack/repos/builtin/packages/py-mizani/package.py
Normal 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.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")
|
29
var/spack/repos/builtin/packages/py-plotnine/package.py
Normal file
29
var/spack/repos/builtin/packages/py-plotnine/package.py
Normal file
@ -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"))
|
Loading…
Reference in New Issue
Block a user