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

python.versions     310 311 312 313 314

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  256668f18fbb6d1c8656495555b791bc857b2b82 \
                    sha256  1ac326b2c84215795163d8a5af471188918b8797b4953ec87aaba22c9c1f9fc0 \
                    size    393269

python.pep517_backend scikit

if {${name} ne ${subport}} {
    compiler.cxx_standard 2017

    depends_run-append  port:py${python.version}-rapidfuzz
}
