add new package: py-python-magic (#12409)

* add new package: py-python-magic

* tidy up

* Update var/spack/repos/builtin/packages/py-python-magic/package.py

Co-Authored-By: Adam J. Stewart <ajstewart426@gmail.com>
This commit is contained in:
Sinan 2019-08-14 08:37:06 -07:00 committed by Adam J. Stewart
parent 2e6b44328a
commit 3a4a513bed

View File

@ -0,0 +1,18 @@
# 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 PyPythonMagic(PythonPackage):
"""A python wrapper for libmagic"""
homepage = "https://github.com/ahupp/python-magic"
url = "https://pypi.io/packages/source/p/python-magic/python-magic-0.4.15.tar.gz"
version('0.4.15', sha256='f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5')
depends_on('py-setuptools', type='build')