# -*- 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-rsa
version             4.9.1
revision            0
license             Apache-2
maintainers         {judaew @judaew} openmaintainer

description         Pure Python RSA implementation
long_description    {*}${description}.\
    It supports encryption and decryption, signing and verifying signatures,\
    and key generation according to PKCS#1 version 1.5. It can be used as a\
    Python library as well as on the commandline.
supported_archs     noarch
platforms           {darwin any}

homepage            https://stuvel.eu/software/rsa/

checksums           rmd160  41fbd3f419242a6905ee4087e0b2d0cac72e231f \
                    sha256  e7bdbfdb5497da4c07dfd35530e1a902659db6ff241e39d9953cad06ebd0ae75 \
                    size    29034

python.versions     39 310 311 312 313
python.pep517_backend poetry

if {${name} ne ${subport}} {
    depends_lib-append  port:py${python.version}-asn1
    depends_test-append port:py${python.version}-mypy

    test.run            yes
}
