# -*- 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-gnupg
version              0.4.6

description          A Python wrapper for GnuPG
long_description     The gnupg module allows Python programs to make use of \
                     the functionality provided by the GNU Privacy Guard \
                     (abbreviated GPG or GnuPG). Using this module, Python \
                     programs can encrypt and decrypt data, digitally sign \
                     documents and verify digital signatures, manage \
                     (generate, list and delete) encryption keys, using \
                     proven Public Key Infrastructure (PKI) encryption \
                     technology based on OpenPGP.
license              BSD
homepage             https://pythonhosted.org/python-gnupg/

categories-append    crypto security
platforms            darwin
maintainers          {@F30 f30.me:f30} openmaintainer

python.versions      36 37 38
depends_run          bin:gpg:gnupg2

master_sites         pypi:p/python-gnupg
distname             python-gnupg-${version}
checksums            rmd160  808403c8ee70a114bd20ee72c83d2e8e5297c1bc \
                     sha256  3aa0884b3bd414652c2385b9df39e7b87272c2eca1b8fcc3089bc9e58652019a \
                     size    52527

# Only enable tests, build-depends for individual subports as otherwise `${python.*}` are not
# available
if {${subport} ne ${name}} {
    test.run                yes
    test.cmd                ${python.bin} test_gnupg.py
    depends_build-append    port:py${python.version}-setuptools
}
