Files
Renee Otten fc12dd50c2 py-libnacl: update to 2.1.0
- drop py38, add py313 subport
2025-12-03 21:36:55 -05:00

49 lines
1.4 KiB
Tcl

# -*- 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 github 1.0
PortGroup python 1.0
github.setup saltstack libnacl 2.1.0 v
github.tarball_from archive
revision 0
name py-libnacl
categories-append net
supported_archs noarch
platforms {darwin any}
license Apache-2
maintainers nomaintainer
description Python binding for libsodium
long_description Libnacl is a Python binding for the libsodium NaCl crypto \
library.
checksums rmd160 cd14f14d2a67a2890e4d5b7fab0468beb19b7b1d \
sha256 4bef42f811f5c8d2509a34efd64e9028b223aa06fb52127cd4dad9301edde6f5 \
size 46400
python.versions 313
python.pep517_backend poetry
if {${name} ne ${subport}} {
depends_lib-append \
port:libsodium
patchfiles libsodium-path.patch
post-patch {
reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/libnacl/__init__.py
}
test.run yes
python.test_framework
test.cmd ${python.bin} tests/runtests.py
post-destroot {
set docdir ${prefix}/share/doc/${subport}
xinstall -d ${destroot}${docdir}
xinstall -m 0644 -W ${worksrcpath} LICENSE \
README.rst ${destroot}${docdir}
}
}