# -*- 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-django-debug-toolbar
version             5.2.0
revision            0

categories-append   www
supported_archs     noarch
platforms           {darwin any}
license             BSD
maintainers         nomaintainer

description         Configurable debug information for the Django Framework.
long_description    A configurable set of panels for the Django Framework \
                    that display various debug information about the current \
                    request/response.

homepage            https://github.com/django-debug-toolbar/django-debug-toolbar

distname            django_debug_toolbar-${version}

checksums           rmd160  b9691a0da46648678871f812c8d747f43ad45ab1 \
                    sha256  9e7f0145e1a1b7d78fcc3b53798686170a5b472d9cf085d88121ff823e900821 \
                    size    297901

python.versions     310 311 312 313
python.pep517_backend hatch

if {${name} ne ${subport}} {
    depends_lib-append \
                    port:py${python.version}-django \
                    port:py${python.version}-sqlparse

    post-destroot {
        xinstall -d ${destroot}${prefix}/share/doc/${subport}
        xinstall -m 0644 -W ${worksrcpath} LICENSE CONTRIBUTING.md \
            README.rst ${destroot}${prefix}/share/doc/${subport}
    }
}
