# -*- 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
categories-append databases
maintainers {snc @nerdling} openmaintainer
description A python DBAPI-2.0-compliant database adapter for postgresql
long_description Psycopg2 is a postgresql database adapter for python. \
It's fully compliant to python's DBAPI-2.0. psycopg is \
designed for heavily multi-threaded applications \
featuring connection pooling.
python.versions 27 34 35 36 37
homepage http://initd.org/psycopg/
master_sites pypi:[string index ${python.rootname} 0]/${python.rootname}
distname ${python.rootname}-${version}
checksums md5 74cbe0f09a6ebafd107f89c858120bd5 \
rmd160 dbf5aa8af1748908d2ad970c64a7059fd9439ade \
sha256 5cacf21b6f813c239f100ef78a4132056f93a5940219ec25d2ef833cbeb05588 \
if {${name} ne ${subport}} {
depends_lib-append path:lib/libssl.dylib:openssl port:py${python.version}-setuptools
patchfiles patch-setup.cfg.diff
if {[variant_isset postgresql11]} {
s|@PG_CONFIG@|${prefix}/lib/postgresql11/bin/pg_config|g \
if {[variant_isset postgresql10]} {
s|@PG_CONFIG@|${prefix}/lib/postgresql10/bin/pg_config|g \
if {[variant_isset postgresql94]} {
s|@PG_CONFIG@|${prefix}/lib/postgresql94/bin/pg_config|g \
if {[variant_isset postgresql95]} {
s|@PG_CONFIG@|${prefix}/lib/postgresql95/bin/pg_config|g \
if {[variant_isset postgresql96]} {
s|@PG_CONFIG@|${prefix}/lib/postgresql96/bin/pg_config|g \
variant postgresql11 conflicts postgresql94 \
postgresql95 postgresql96 \
description "Build using postgresql v11" {
depends_lib-append port:postgresql11
variant postgresql10 conflicts postgresql94 \
postgresql95 postgresql96 postgresql11 \
description "Build using postgresql v10" {
depends_lib-append port:postgresql10
variant postgresql94 conflicts postgresql10 \
postgresql95 postgresql96 postgresql11 \
description "Build using postgresql v9.4" {
depends_lib-append port:postgresql94
variant postgresql95 conflicts postgresql10 \
postgresql94 postgresql96 postgresql11 \
description "Build using postgresql v9.5" {
depends_lib-append port:postgresql95