From 68979f8740c0d30175d17077852f1f6a1fe036e0 Mon Sep 17 00:00:00 2001 From: "Adam J. Stewart" Date: Wed, 22 Mar 2023 16:00:40 -0500 Subject: py-papermill: add new package (#36328) --- .../repos/builtin/packages/py-ansiwrap/package.py | 18 +++++++++++++++ .../repos/builtin/packages/py-papermill/package.py | 26 ++++++++++++++++++++++ .../repos/builtin/packages/py-textwrap3/package.py | 17 ++++++++++++++ 3 files changed, 61 insertions(+) create mode 100644 var/spack/repos/builtin/packages/py-ansiwrap/package.py create mode 100644 var/spack/repos/builtin/packages/py-papermill/package.py create mode 100644 var/spack/repos/builtin/packages/py-textwrap3/package.py diff --git a/var/spack/repos/builtin/packages/py-ansiwrap/package.py b/var/spack/repos/builtin/packages/py-ansiwrap/package.py new file mode 100644 index 0000000000..95f92cfb6b --- /dev/null +++ b/var/spack/repos/builtin/packages/py-ansiwrap/package.py @@ -0,0 +1,18 @@ +# Copyright 2013-2023 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 PyAnsiwrap(PythonPackage): + """textwrap, but savvy to ANSI colors and styles.""" + + homepage = "https://github.com/jonathaneunice/ansiwrap" + pypi = "ansiwrap/ansiwrap-0.8.4.zip" + + version("0.8.4", sha256="ca0c740734cde59bf919f8ff2c386f74f9a369818cdc60efe94893d01ea8d9b7") + + depends_on("py-setuptools", type="build") + depends_on("py-textwrap3@0.9.2:", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-papermill/package.py b/var/spack/repos/builtin/packages/py-papermill/package.py new file mode 100644 index 0000000000..2433a5158f --- /dev/null +++ b/var/spack/repos/builtin/packages/py-papermill/package.py @@ -0,0 +1,26 @@ +# Copyright 2013-2023 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 PyPapermill(PythonPackage): + """Parametrize and run Jupyter and nteract Notebooks.""" + + homepage = "https://github.com/nteract/papermill" + pypi = "papermill/papermill-2.4.0.tar.gz" + + version("2.4.0", sha256="6f8f8a9b06b39677f207c09100c8d386bcf592f0cbbdda9f0f50e81445697627") + + depends_on("py-setuptools", type="build") + depends_on("py-ansiwrap", type=("build", "run")) + depends_on("py-click", type=("build", "run")) + depends_on("py-pyyaml", type=("build", "run")) + depends_on("py-nbformat@5.1.2:", type=("build", "run")) + depends_on("py-nbclient@0.2:", type=("build", "run")) + depends_on("py-tqdm@4.32.2:", type=("build", "run")) + depends_on("py-requests", type=("build", "run")) + depends_on("py-entrypoints", type=("build", "run")) + depends_on("py-tenacity", type=("build", "run")) diff --git a/var/spack/repos/builtin/packages/py-textwrap3/package.py b/var/spack/repos/builtin/packages/py-textwrap3/package.py new file mode 100644 index 0000000000..a28350b2db --- /dev/null +++ b/var/spack/repos/builtin/packages/py-textwrap3/package.py @@ -0,0 +1,17 @@ +# Copyright 2013-2023 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 PyTextwrap3(PythonPackage): + """textwrap from Python 3.6 backport (plus a few tweaks).""" + + homepage = "https://github.com/jonathaneunice/textwrap3" + pypi = "textwrap3/textwrap3-0.9.2.zip" + + version("0.9.2", sha256="5008eeebdb236f6303dcd68f18b856d355f6197511d952ba74bc75e40e0c3414") + + depends_on("py-setuptools", type="build") -- cgit v1.2.3-70-g09d2