Files
macports-ports/python/py-cattrs/Portfile
T
2025-02-18 02:18:51 +02:00

44 lines
1.5 KiB
Tcl

# -*- 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-cattrs
version 24.1.2
revision 0
license MIT
maintainers nomaintainer
supported_archs noarch
platforms {darwin any}
description ${name} is an open-source Python library \
for structuring and unstructuring data.
long_description {*}${description}. ${name} works best with attrs classes, \
dataclasses and the usual Python collections, \
but other kinds of classes are supported \
by manually registering converters.
homepage https://github.com/python-attrs/cattrs
checksums rmd160 af8f4a9f42ac1f3b38ec735e1addec446293d53e \
sha256 8028cfe1ff5382df59dd36474a86e02d817b06eaf8af84555441bac915d2ef85 \
size 426462
python.versions 39 310 311 312 313
if {${name} ne ${subport}} {
python.pep517_backend hatch
depends_build-append \
port:py${python.version}-hatch-vcs
depends_lib-append \
port:py${python.version}-attrs
if {${python.version} < 311} {
depends_lib-append \
port:py${python.version}-exceptiongroup \
port:py${python.version}-typing_extensions
}
}