# -*- 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-levenshtein
version             0.26.1
revision            0
categories-append   textproc
platforms           darwin freebsd
license             GPL-2+

python.versions     39 310 311 312 313

maintainers         {stromnov @stromnov} openmaintainer

description         Python module for fast computation of Levensthein distances.

long_description    The Levenshtein Python C extension module contains \
                    functions for fast computation of Levenshtein (edit) \
                    distance, and edit operations, string similarity, \
                    approximate median strings, and generally string \
                    averaging, string sequence and set similarity. It \
                    supports both normal and Unicode strings.

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

checksums           rmd160  957316b4e7ada8d532ba760f2a42beb29626834d \
                    sha256  0d19ba22330d50609b2349021ec3cf7d905c6fe21195a2d0d876a146e7ed2575 \
                    size    374307

if {${name} ne ${subport}} {
    compiler.cxx_standard 2017
    depends_build-append \
                        port:py${python.version}-scikit-build-core \
                        port:ninja
    depends_run-append  port:py${python.version}-rapidfuzz
}
