# -*- 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.27.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  a6bc3a61ddea683d39b64469edd06a2ba561bb8e \
                    sha256  3e18b73564cfc846eec94dd13fab6cb006b5d2e0cc56bad1fd7d5585881302e3 \
                    size    382571

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
}
