summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSinan <sbulutw@gmail.com>2019-08-23 15:53:09 -0700
committerPeter Scheibel <scheibel1@llnl.gov>2019-08-23 15:53:09 -0700
commit15c64d93b75928f93fa392773a94ba44de6b94ed (patch)
tree96877f958484ac1a05eb346f61f90e86b150bcd5
parentc0cb92b2f6687f10dca4ec0aa205bfd19b3a6d34 (diff)
downloadspack-15c64d93b75928f93fa392773a94ba44de6b94ed.tar.gz
spack-15c64d93b75928f93fa392773a94ba44de6b94ed.tar.bz2
spack-15c64d93b75928f93fa392773a94ba44de6b94ed.tar.xz
spack-15c64d93b75928f93fa392773a94ba44de6b94ed.zip
New package: py-filemagic (#12452)
-rw-r--r--var/spack/repos/builtin/packages/py-filemagic/package.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-filemagic/package.py b/var/spack/repos/builtin/packages/py-filemagic/package.py
new file mode 100644
index 0000000000..7238ac1bc0
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-filemagic/package.py
@@ -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')