# -*- 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

PortSystem          1.0
PortGroup           python 1.0

name                py-demucs
version             4.1.0
revision            0

categories-append   audio science
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {pguyot @pguyot} openmaintainer

description         Music source separation in the waveform domain

long_description    Demucs is a state-of-the-art music source separation \
                    model from Meta AI Research that separates drums, \
                    bass, vocals, and other instruments from audio.

homepage            https://github.com/facebookresearch/demucs

checksums           rmd160  02669ac989427e482774d6b03f2c1c8e6d4a031c \
                    sha256  d94c4f7dac886595b66af405c0fd1756fa00c297183f1cf021fd2eeedeeb67b2 \
                    size    1244351

python.versions     313 314
python.pep517_backend \
                    hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-einops \
                    port:py${python.version}-huggingface_hub \
                    port:py${python.version}-julius \
                    port:py${python.version}-lameenc \
                    port:py${python.version}-pytorch \
                    port:py${python.version}-safetensors \
                    port:py${python.version}-sphn \
                    port:py${python.version}-tqdm \
                    port:py${python.version}-yaml
}
