# -*- 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-openpyxl
version             3.1.5
revision            0
categories-append   textproc
license             MIT

python.versions     310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         Read/write Excel 2007 xlsx/xlsm files.

long_description    openpyxl is a pure python reader and writer of Excel \
                    OpenXML files. It is ported from the PHPExcel project.

homepage            https://openpyxl.readthedocs.org

checksums           rmd160  4ba7f7813bcf05a183b86e943c2b1306c84c4c3d \
                    sha256  cf0e3cf56142039133628b5acffe8ef0c12bc902d2aadd3e0fe5878dc08d1050 \
                    size    186464

if {${name} ne ${subport}} {
    depends_build-append \
                        port:py${python.version}-setuptools \
                        port:py${python.version}-cython

    depends_lib-append  port:py${python.version}-et_xmlfile

    python.pep517       no

    build.args-append   --with-cython
    destroot.args-append \
                         --with-cython
}
