diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/py-gluoncv/no-unicode-readme.patch | 11 | ||||
-rw-r--r-- | var/spack/repos/builtin/packages/py-gluoncv/package.py | 36 |
2 files changed, 47 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-gluoncv/no-unicode-readme.patch b/var/spack/repos/builtin/packages/py-gluoncv/no-unicode-readme.patch new file mode 100644 index 0000000000..43d0a6c5e8 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-gluoncv/no-unicode-readme.patch @@ -0,0 +1,11 @@ +--- a/README.md 2020-04-03 11:56:41.820271316 -0400 ++++ b/README.md 2020-04-03 11:56:55.901335611 -0400 +@@ -72,7 +72,7 @@ + + There are multiple versions of MXNet pre-built package available. Please refer to [mxnet packages](https://gluon-crash-course.mxnet.io/mxnet_packages.html) if you need more details about MXNet versions. + +-# Docs 📖 ++# Docs + GluonCV documentation is available at [our website](https://gluon-cv.mxnet.io/index.html). + + # Examples diff --git a/var/spack/repos/builtin/packages/py-gluoncv/package.py b/var/spack/repos/builtin/packages/py-gluoncv/package.py new file mode 100644 index 0000000000..0596676654 --- /dev/null +++ b/var/spack/repos/builtin/packages/py-gluoncv/package.py @@ -0,0 +1,36 @@ +# 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 PyGluoncv(PythonPackage): + """GluonCV provides implementations of state-of-the-art + (SOTA) deep learning algorithms in computer vision. It aims + to help engineers, researchers, and students quickly + prototype products, validate new ideas and learn computer + vision.""" + + homepage = "https://gluon-cv.mxnet.io/" + url = "https://github.com/dmlc/gluon-cv/archive/v0.6.0.tar.gz" + + version('0.6.0', sha256='5ac89d73f34d02b2e60595a5cc35f46d0a69376567fae3a9518005dd89161305') + + depends_on('py-setuptools', type='build') + depends_on('py-numpy', type=('build', 'run')) + depends_on('py-tqdm', type=('build', 'run')) + depends_on('py-requests', type=('build', 'run')) + depends_on('py-matplotlib', type=('build', 'run')) + depends_on('py-portalocker', type=('build', 'run')) + depends_on('py-pillow', type=('build', 'run')) + depends_on('py-scipy', type=('build', 'run')) + depends_on('py-cython', type='build') + + patch('no-unicode-readme.patch') + + def build_args(self, spec, prefix): + args = [] + args.append('--with-cython') + return args |