summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMatthias Wolf <matthias.wolf@epfl.ch>2020-02-13 10:03:19 +0100
committerGitHub <noreply@github.com>2020-02-13 10:03:18 +0100
commitfb482ae0c9b4a1d739ef57f76eed4752f3d2efc8 (patch)
tree9929dcbfb67ce7cec01e14cd23d00aaf9a42e1cb /var
parenta337d278742a22ae11637b0944f8baa065801858 (diff)
downloadspack-fb482ae0c9b4a1d739ef57f76eed4752f3d2efc8.tar.gz
spack-fb482ae0c9b4a1d739ef57f76eed4752f3d2efc8.tar.bz2
spack-fb482ae0c9b4a1d739ef57f76eed4752f3d2efc8.tar.xz
spack-fb482ae0c9b4a1d739ef57f76eed4752f3d2efc8.zip
py-magic: new package (#14912)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-magic/package.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-magic/package.py b/var/spack/repos/builtin/packages/py-magic/package.py
new file mode 100644
index 0000000000..ed29fdcdbb
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-magic/package.py
@@ -0,0 +1,18 @@
+# Copyright 2013-2020 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 PyMagic(PythonPackage):
+ """A python wrapper for libmagic."""
+
+ homepage = "https://github.com/ahupp/python-magic"
+ url = "https://github.com/ahupp/python-magic/archive/0.4.15.tar.gz"
+
+ version('0.4.15', sha256='6d730389249ab1e34ffb0a3c5beaa44e116687ffa081e0176dab6c59ff271593')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('file', type='run')