# -*- 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-pyperclip
version             1.9.0
revision            0

supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         {petr @petrrr} openmaintainer

description         A cross-platform clipboard module for Python
long_description    {*}${description}. It currently handles only plain text.

homepage            https://github.com/asweigart/pyperclip

checksums           rmd160  31c2d7e2e3def87f4caaa872b413914a66555906 \
                    sha256  b7de0142ddc81bfc5c7507eea19da920b92252b548b96186caf94a5e2527d310 \
                    size    20961

python.versions     39 310 311 312 313 314

if {${name} ne ${subport}} {
    test.run        yes
    test.dir        ${build.dir}/tests
    test.cmd        ${python.bin} test_pyperclip.py

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