# -*- 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-pylast
version             7.0.0
revision            0

categories-append   devel audio
platforms           {darwin any}
supported_archs     noarch
license             Apache-2
maintainers         nomaintainer

description         A Python interface to Last.fm and Libre.fm
long_description    {*}${description}

homepage            https://github.com/pylast/pylast

checksums           rmd160  afc69b524ad2ae38fb4f92a5010169b05093e2eb \
                    sha256  05803f66d50e33521788f01eb30a9d4e3fbffbb4d81420826a2e3e9ca598a370 \
                    size    435280

python.versions     310 311 312 313
python.pep517_backend   hatch

if {${name} ne ${subport}} {
    depends_build-append \
                    port:py${python.version}-hatch-vcs

    depends_lib-append \
                    port:py${python.version}-httpx

    depends_test-append \
                    port:py${python.version}-flaky \
                    port:py${python.version}-pytest-random-order \
                    port:py${python.version}-yaml \
                    port:py${python.version}-pytest-recording

    test.run        yes
    test.env-append PYTHONPATH=${destroot}${python.pkgd}
}
