New package: py-filemagic (#12452)

This commit is contained in:
Sinan 2019-08-23 15:53:09 -07:00 committed by Peter Scheibel
parent c0cb92b2f6
commit 15c64d93b7

View File

@ -0,0 +1,19 @@
# 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 PyFilemagic(PythonPackage):
"""A Python API for libmagic, the library behind the Unix file command"""
homepage = "https://filemagic.readthedocs.io/en/latest/"
url = "https://pypi.io/packages/source/f/filemagic/filemagic-1.6.tar.gz"
version('1.6', sha256='e684359ef40820fe406f0ebc5bf8a78f89717bdb7fed688af68082d991d6dbf3')
depends_on('py-setuptools', type='build')
depends_on('py-mock', type='test', when='^python@3:')
depends_on('py-unittest2', type='test')