easyblock = 'PythonPackage'

name = 'torchaudio'
version = '0.10.0'
versionsuffix = '-PyTorch-1.10.0'

homepage = 'https://github.com/pytorch/audio'
description = """ Data manipulation and transformation for audio signal
processing, powered by PyTorch """

toolchain = {'name': 'fosscuda', 'version': '2020b'}

# download manually from github
# git clone -b orig/release/0.10 https://github.com/pytorch/audio.git
# git submodule update --init --recursive
#source_urls = ['https://github.com/pytorch/audio/archive']
sources = ['v%(version)s.tar.gz']

dependencies = [
    ('Python', '3.8.6'),
    ('SciPy-bundle', '2020.11'),
    ('PyTorch', '1.10.0'),
    ('SoX', '14.4.2', '', True),
]

download_dep_fail = True
use_pip = True
sanity_pip_check = True

moduleclass = 'tools'
