# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
github.setup pytorch text ${version}
checksums rmd160 473c770dd8c865db8277839f5210a8a771580bed \
sha256 8140783d24b98233496a53ac08325fa9655d76289fbb51257f980c733e069900 \
maintainers {jonesc @cjones051073} openmaintainer
description PyTorch data loaders and abstractions for text and NLP
long_description ${description}
homepage https://github.com/pytorch/text
github.livecheck.regex {([0-9.]+)}
# Support python versions
python.versions 27 35 36 37 38
if {${name} ne ${subport}} {
port:py${python.version}-setuptools
port:py${python.version}-nltk
if {${python.version} > 30} {
port:py${python.version}-spaCy \
port:py${python.version}-spaCy-models
build.cmd "${python.bin} setup.py"
destroot.cmd "${python.bin} setup.py install"