# -*- 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-pytest-qt
version             4.5.0
revision            0

categories-append   devel
platforms           {darwin any}
supported_archs     noarch
license             MIT
maintainers         {reneeotten @reneeotten} openmaintainer

description         pytest plugin for Qt (PyQt5/PyQt6 and PySide2/PySide6) application testing
long_description    {*}${description}

homepage            https://github.com/pytest-dev/pytest-qt

distname            pytest_qt-${version}

checksums           rmd160  03cd7c2cb200d06fb9b4270c4c611a75c9768459 \
                    sha256  51620e01c488f065d2036425cbc1cbcf8a6972295105fd285321eb47e66a319f \
                    size    128702

python.versions     39 310 311 312 313

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

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

    post-destroot {
        set docdir ${prefix}/share/doc/${subport}
        xinstall -d ${destroot}${docdir}
        xinstall -m 0644 -W ${worksrcpath} LICENSE CHANGELOG.rst \
            README.rst ${destroot}${docdir}
    }
}
