Files
macports-ports/python/py-asyncpg/Portfile
2025-11-06 10:09:15 -05:00

43 lines
1.5 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 python 1.0
name py-asyncpg
version 0.29.0
revision 0
categories-append devel
license Apache-2
maintainers nomaintainer
description An asyncio PostgreSQL driver
long_description asyncpg is a database interface library designed \
specifically for PostgreSQL and \
Python/asyncio. asyncpg is an efficient, clean \
implementation of PostgreSQL server binary \
protocol for use with Python's asyncio \
framework.
homepage https://github.com/MagicStack/asyncpg
checksums rmd160 f876c21b1d3b92caae25a9795fa8cbc3258a4be7 \
sha256 d1c49e1f44fffafd9a55e1a9b101590859d881d639ea2922516f5d9c512d354e \
size 820455
python.versions 310 311 312
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-cython-compat
set compat_path [string replace ${python.pkgd} 0 [string length ${python.prefix}]-1 ${prefix}/lib/py${python.version}-cython-compat]
build.env-append PYTHONPATH=${compat_path}
if {${python.version} < 312} {
depends_run-append \
port:py${python.version}-async-timeout
}
test.run yes
}