summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-prettytable/package.py
blob: 27fab7c0466467605adc0f19ed16508bb41e2f71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from spack import depends_on, extends, version
from spack import Package


class PyPrettytable(Package):
    """
    PrettyTable is a simple Python library designed to make
    it quick and easy to represent tabular data in visually
    appealing ASCII tables
    """
    homepage = "https://code.google.com/archive/p/prettytable/"
    url      = "https://pypi.python.org/packages/e0/a1/36203205f77ccf98f3c6cf17cf068c972e6458d7e58509ca66da949ca347/prettytable-0.7.2.tar.gz"

    version('0.7.2', 'a6b80afeef286ce66733d54a0296b13b')

    extends("python")
    depends_on("py-setuptools")

    def install(self, spec, prefix):
        python('setup.py', 'install', '--prefix=%s' % prefix)