summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-imagesize/package.py
blob: c1fc830a60f800c9fc89f8f2bedf8d44dc89eb26 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2013-2018 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 PyImagesize(PythonPackage):
    """Parses image file headers and returns image size. Supports PNG, JPEG,
    JPEG2000, and GIF image file formats."""

    homepage = "https://github.com/shibukawa/imagesize_py"
    url      = "https://pypi.io/packages/source/i/imagesize/imagesize-0.7.1.tar.gz"

    import_modules = ['imagesize']

    version('0.7.1', '976148283286a6ba5f69b0f81aef8052')

    depends_on('py-setuptools', type='build')