# -*- 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-pydantic
version             2.5.3
categories-append   devel
license             MIT

python.versions     38 39 310 311 312

maintainers         {@jandemter demter.de:jan} openmaintainer

description         Data validation and settings management using Python type hinting
long_description    Fast and extensible, pydantic plays nicely \
                    with your linters/IDE/brain. Define how data \
                    should be in pure, canonical Python 3.6+\; \
                    validate it with pydantic.

homepage            https://github.com/samuelcolvin/pydantic

checksums           rmd160  7d7a70244dfcb6b460f67aa6de7de67bbc7bde20 \
                    sha256  b3ef57c62535b0941697cce638c08900d87fcb67e29cfa99e8a68f747f393f7a \
                    size    651797

if {${name} ne ${subport}} {
    python.pep517_backend \
                    hatch

    depends_build-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-hatch-fancy-pypi-readme

    depends_run-append \
                    port:py${python.version}-annotated_types \
                    port:py${python.version}-pydantic_core
}
