# -*- 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.6
platforms           darwin
license             Apache-2
maintainers         nomaintainer

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.

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

checksums           rmd160  399e2100a851fc00984b814ab614b6d5292a4f7a \
                    sha256  109ea5a66744dd859bf16fe904b8d8b627adafb9408753161e766a92e7d681fa \
                    size    46954

python.versions     27 35 36 37 38 39

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

    test.run            yes

    livecheck.type      none
}
