# -*- 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-affine
version             3.0.1
revision            0
categories-append   devel math gis
license             BSD
supported_archs     noarch
platforms           {darwin any}

python.versions     310 311 312 313 314 315
python.pep517_backend flit

maintainers         {stromnov @stromnov} openmaintainer

description         Matrices describing affine transformation of the plane.
long_description    {*}${description}

homepage            https://github.com/sgillies/affine

checksums           rmd160  f6e8577048900525e8d4feeffd6c2ef4aee82d16 \
                    sha256  e1b3c38c5d4d3ef5024a182a6d1bf1e0c51ab221825781c741aeb4d0c079a7e2 \
                    size    20981

if {${name} ne ${subport}} {
    patchfiles-append \
                    patch-pyproject.toml.diff

    test.run        yes
    depends_test-append \
                    port:py${python.version}-attrs
}
