summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAdam J. Stewart <ajstewart426@gmail.com>2020-08-18 05:10:18 -0500
committerGitHub <noreply@github.com>2020-08-18 12:10:18 +0200
commit17d96b615a5d4b99f532b2110c65ad188be7f005 (patch)
treeff7a1ea789d1f1816bdaf020ad773fdfabe2cf5b /var
parent3210d6b64e6da1e2a7817aabfe3d64141297407b (diff)
downloadspack-17d96b615a5d4b99f532b2110c65ad188be7f005.tar.gz
spack-17d96b615a5d4b99f532b2110c65ad188be7f005.tar.bz2
spack-17d96b615a5d4b99f532b2110c65ad188be7f005.tar.xz
spack-17d96b615a5d4b99f532b2110c65ad188be7f005.zip
py-accimage: add new package (#18122)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-accimage/package.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-accimage/package.py b/var/spack/repos/builtin/packages/py-accimage/package.py
new file mode 100644
index 0000000000..3ef812704c
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-accimage/package.py
@@ -0,0 +1,27 @@
+# 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)
+
+
+class PyAccimage(PythonPackage):
+ """An accelerated Image loader and preprocessor leveraging Intel IPP.
+
+ accimage mimics the PIL API and can be used as a backend for torchvision.
+ """
+
+ homepage = "https://github.com/pytorch/accimage"
+ url = "https://github.com/pytorch/accimage/archive/v0.1.1.tar.gz"
+
+ version('0.1.1', sha256='573c56866a42683c7cf25185620fe82ec2ce78468e0621c29fac8f4134a785f5')
+
+ depends_on('python', type=('build', 'link', 'run'))
+ depends_on('jpeg')
+ depends_on('ipp')
+ depends_on('py-pytest', type='test')
+ depends_on('py-numpy', type='test')
+ depends_on('py-imageio', type='test')
+
+ def test(self):
+ pytest = which('pytest')
+ pytest('test.py')