summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/py-ansiwrap/package.py18
-rw-r--r--var/spack/repos/builtin/packages/py-papermill/package.py26
-rw-r--r--var/spack/repos/builtin/packages/py-textwrap3/package.py17
3 files changed, 61 insertions, 0 deletions
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")