summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/packages/py-yapf/package.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/var/spack/packages/py-yapf/package.py b/var/spack/packages/py-yapf/package.py
new file mode 100644
index 0000000000..12ef191515
--- /dev/null
+++ b/var/spack/packages/py-yapf/package.py
@@ -0,0 +1,15 @@
+from spack import *
+
+class PyYapf(Package):
+ """ Yet Another Python Formatter """
+ homepage = "https://github.com/google/yapf"
+ # base https://pypi.python.org/pypi/cffi
+ url = "https://github.com/google/yapf/archive/v0.2.1.tar.gz"
+
+ version('0.2.1', '348ccf86cf2057872e4451b204fb914c')
+
+ extends('python')
+ depends_on('py-setuptools')
+
+ def install(self, spec, prefix):
+ python('setup.py', 'install', '--prefix=%s' % prefix)