summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Herbein <stephen272@gmail.com>2019-02-05 16:04:21 -0800
committerPeter Scheibel <scheibel1@llnl.gov>2019-02-06 13:50:04 -0600
commitb028e99cac7b67aa5902e6c3b32941de3e1c4113 (patch)
tree39cf05f47b0739681bf448943276be9edf0a8f00
parent4e92974ed185ba78de95af9a0b1e8fdd3f3a6fc1 (diff)
downloadspack-b028e99cac7b67aa5902e6c3b32941de3e1c4113.tar.gz
spack-b028e99cac7b67aa5902e6c3b32941de3e1c4113.tar.bz2
spack-b028e99cac7b67aa5902e6c3b32941de3e1c4113.tar.xz
spack-b028e99cac7b67aa5902e6c3b32941de3e1c4113.zip
py-black: add new package
-rw-r--r--var/spack/repos/builtin/packages/py-black/package.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-black/package.py b/var/spack/repos/builtin/packages/py-black/package.py
new file mode 100644
index 0000000000..33ab98b455
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-black/package.py
@@ -0,0 +1,29 @@
+# Copyright 2013-2019 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 import *
+
+
+class PyBlack(PythonPackage):
+ """Black is the uncompromising Python code formatter. By using it, you agree to
+ cede control over minutiae of hand-formatting. In return, Black gives you
+ speed, determinism, and freedom from pycodestyle nagging about formatting.
+ """
+
+ homepage = "https://github.com/ambv/black"
+ url = "https://pypi.io/packages/source/b/black/black-18.9b0.tar.gz"
+
+ version('18.9b0', sha256='e030a9a28f542debc08acceb273f228ac422798e5215ba2a791a6ddeaaca22a5')
+
+ depends_on('python@3.6.0:')
+ # Needs setuptools at runtime so that `import pkg_resources` succeeds
+ # See #8843 and #8689 for examples of setuptools added as a runtime dep
+ depends_on('py-setuptools', type=('build', 'run'))
+ # Translated from black's setup.py:
+ # https://github.com/ambv/black/blob/master/setup.py
+ depends_on('py-attrs@18.1.0:', type=('build', 'run'))
+ depends_on('py-click@6.5:', type=('build', 'run'))
+ depends_on('py-appdirs', type=('build', 'run'))
+ depends_on('py-toml@0.9.4:', type=('build', 'run'))