From fda208f6b8532efa71bc1c0409606d5f9535a76a Mon Sep 17 00:00:00 2001 From: Tom Scogland Date: Thu, 9 Jul 2015 14:55:27 -0700 Subject: [PATCH] adding YAPF (Yet Another Python Formatter) --- var/spack/packages/py-yapf/package.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 var/spack/packages/py-yapf/package.py 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)