# -*- 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-ulid
python.rootname     python_ulid
version             4.0.1
revision            0

license             MIT
maintainers         {mps @Schamschula} openmaintainer
description         Universally Unique Lexicographically Sortable Identifier in Python 3.
long_description    {*}${description}
homepage            https://github.com/ahawker/ulid

supported_archs     noarch
platforms           {darwin any}

checksums           rmd160  b18670da56e9ea31da6075d768aa57d6400156ae \
                    sha256  bbeec02556190bb9dc3401faa7268696acbfbe7b6db9908c155dc3548629f20c \
                    size    101683

python.versions     310 311 312 313 314

python.pep517_backend \
                    hatch

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

    if {${python.version} < 311} {
        depends_lib-append \
                    port:py${python.version}-typing_extensions
    }

    build.env       SETUPTOOLS_SCM_PRETEND_VERSION=${version}
}
