
* py-magic: delete redundant package
This package is actually named py-python-magic (since the project itself
is "python-magic").
* New package: libmagic
* Py-python-magic: add required runtime dependency on libmagic and new version
* Py-filemagic: add required runtime dependency
* py-magic: restore and mark as redundant
This reverts commit 4cab7fb69e
.
* file: add implicit dependencies and static variant
Replaces redundant libmagic that I added. Compression headers were previously
being picked up from the system.
* Fix py-python-magic dependency
* Update python version requirements
25 lines
832 B
Python
25 lines
832 B
Python
# Copyright 2013-2021 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.
|
|
|
|
This project is named python-magic but imports as the module name "magic".
|
|
"""
|
|
|
|
homepage = "https://github.com/ahupp/python-magic"
|
|
pypi = "python-magic/python-magic-0.4.15.tar.gz"
|
|
|
|
version('0.4.24', sha256='de800df9fb50f8ec5974761054a708af6e4246b03b4bdaee993f948947b0ebcf')
|
|
version('0.4.15', sha256='f3765c0f582d2dfc72c15f3b5a82aecfae9498bd29ca840d72f37d7bd38bfcd5')
|
|
|
|
depends_on('python@2.7.0:2.7,3.5:', type=('build', 'run'))
|
|
depends_on('py-setuptools', type='build')
|
|
depends_on('file', type='run')
|