
# -*- 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-dulwich
version             0.21.6
categories-append   devel
maintainers         {danchr @danchr} openmaintainer
license             {GPL-2+ Apache-2+}

description         Pure-Python Git Library
long_description    Simple Pure-Python implementation of the Git file \
                    formats and protocols. Dulwich is the place where \
                    Mr. and Mrs. Git live in one of the Monty Python sketches.

homepage            https://www.dulwich.io

checksums           rmd160  3a84a1fd013fa21cfb55a1ff97140465e1fc8a07 \
                    sha256  30fbe87e8b51f3813c131e2841c86d007434d160bd16db586b40d47f31dd05b0 \
                    size    445545

python.versions     37 38 39 310 311 312

if {${name} ne ${subport}} {
    python.pep517           yes

    if {${python.version} < 310} {
        depends_build-append \
            port:py${python.version}-importlib-metadata
    }

    patchfiles      patch-archflags.diff \
                    patch-strnlen-lion.diff

    depends_lib-append \
                    port:py${python.version}-setuptools \
                    port:py${python.version}-urllib3
}
