# -*- 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-pyspnego
version             0.11.2
revision            0

categories-append   net security
supported_archs     noarch
platforms           {darwin any}
license             MIT
maintainers         nomaintainer

description         Python SPNEGO Library
long_description    \
    Library to handle SPNEGO (Negotiate, NTLM, Kerberos) and CredSSP \
    authentication. Also includes a packet parser that can be used to decode \
    raw NTLM/SPNEGO/Kerberos tokens into a human readable format.

homepage            https://github.com/jborean93/pyspnego

checksums           rmd160  03c587064ab2e13d723c5b99f115fddd5e267053 \
                    sha256  994388d308fb06e4498365ce78d222bf4f3570b6df4ec95738431f61510c971b \
                    size    225954

python.versions     310 311 312 313

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

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