# -*- 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
PortGroup           compiler_wrapper 1.0

name                py-rapidfuzz
version             3.9.7
revision            0
categories-append   textproc
license             MIT

python.versions     38 39 310 311 312

maintainers         {stromnov @stromnov} openmaintainer

description         A fast string matching library for Python.
long_description    ${description}

homepage            https://github.com/maxbachmann/RapidFuzz

checksums           rmd160  58579263ddfbc3a5af93b32db22dd8bebea7d044 \
                    sha256  f1c7296534c1afb6f495aa95871f14ccdc197c6db42965854e483100df313030 \
                    size    1596228

if {${name} ne ${subport}} {
    compiler.cxx_standard 2017
    depends_build-append \
                        port:py${python.version}-scikit-build \
                        port:py${python.version}-cython \
                        port:ninja
    patchfiles-append   patch-pyproject.toml.diff
}
