# -*- 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

# also update py-pycryptodomex
name                py-pycryptodome
version             3.21.0
revision            0

homepage            https://www.pycryptodome.org

license             BSD
maintainers         nomaintainer

description         Cryptographic library for Python
long_description    PyCryptodome is a self-contained Python package of \
                    low-level cryptographic primitives. \
                    PyCryptodome is a fork of PyCrypto.

python.versions     27 38 39 310 311 312 313

checksums           rmd160  dc71e5d93667082ba4012e80f4bd6f5da7503389 \
                    sha256  f7787e0d469bdae763b876174cf2e6c0f7be79808af26b1da96f1a64bcf47297 \
                    size    4818071

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

    test.run            yes
    test.cmd            ${python.bin} setup.py test
    test.args
}
