summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-gluoncv/package.py
blob: 05966766543f39b29c33f448a01106d515eddea2 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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