# -*- 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-hanko
python.rootname     pyhanko
version             0.35.2
revision            0

license             MIT
maintainers         nomaintainer
description         Tools for stamping and signing PDF files
long_description    {*}${description}
homepage            https://github.com/MatthiasValvekens/pyHanko

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  dfb5133accf1b84ff189b724796399102af8b31c \
                    sha256  e3363ae72aa3570c7d85ec76592f8b7e900d5695c264cafadc1926df7b0bd711 \
                    size    7680125

python.versions     310 311 312 313 314

if {${name} ne ${subport}} {
    post-patch {
        reinplace "s|\"setuptools>=.*\"|\"setuptools\"|g" ${worksrcpath}/pyproject.toml
    }

    depends_lib-append \
                    port:py${python.version}-asn1crypto \
                    port:py${python.version}-click \
                    port:py${python.version}-cryptography \
                    port:py${python.version}-fonttools \
                    port:py${python.version}-hanko-certvalidator \
                    port:py${python.version}-mypy \
                    port:py${python.version}-Pillow \
                    port:py${python.version}-pytest-asyncio \
                    port:py${python.version}-qrcode \
                    port:py${python.version}-requests \
                    port:py${python.version}-tzlocal \
                    port:py${python.version}-uharfbuzz \
                    port:py${python.version}-uritools \
                    port:py${python.version}-yaml
}
