summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py
diff options
context:
space:
mode:
authorErik Heeren <erik.heeren@epfl.ch>2023-01-31 17:27:16 +0100
committerGitHub <noreply@github.com>2023-01-31 08:27:16 -0800
commita426db06e7db90d2c07f4862841f9b940a9b9d1f (patch)
treec7af00bb5aca252b0d5d0558e4f6d35e8656adf9 /var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py
parent4b12d015e1c316b4837e02ae37e2c69a8a647180 (diff)
downloadspack-a426db06e7db90d2c07f4862841f9b940a9b9d1f.tar.gz
spack-a426db06e7db90d2c07f4862841f9b940a9b9d1f.tar.bz2
spack-a426db06e7db90d2c07f4862841f9b940a9b9d1f.tar.xz
spack-a426db06e7db90d2c07f4862841f9b940a9b9d1f.zip
py-matplotlibscalebar: new package (#35242)
* py-matplotlibscalebar: new package * py-matplotlibscalebar: style * py-matplotlib-scalebar: review remarks
Diffstat (limited to 'var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py b/var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py
new file mode 100644
index 0000000000..0e49bb1731
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-matplotlib-scalebar/package.py
@@ -0,0 +1,24 @@
+# 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 PyMatplotlibScalebar(PythonPackage):
+ """Provides a new artist for matplotlib to display a scale bar,
+ aka micron bar."""
+
+ homepage = "https://github.com/ppinard/matplotlib-scalebar"
+ pypi = "matplotlib-scalebar/matplotlib-scalebar-0.6.1.tar.gz"
+ git = "https://github.com/ppinard/matplotlib-scalebar.git"
+
+ version("master", branch="master")
+ version("0.8.1", sha256="14887af1093579c5e6afae51a0a1ecc3f715cdbc5c4d7ef59cdeec76ee6bb15d")
+ version("0.6.1", sha256="85cec2bacf85aaf00a70cafa5786f7e66e7c0f6e9dc5c894fd6d1afaa7264ecd")
+
+ depends_on("py-setuptools", type="build")
+
+ depends_on("python@3.7:3", type=("build", "run"))
+ depends_on("py-matplotlib", type=("build", "run"))