SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "psycopg2"

# SliTaz package receipt.

PACKAGE="psycopg2"
VERSION="2.8.4"
CATEGORY="development"
SHORT_DESC="PostgreSQL database adapter for the Python."
MAINTAINER="pascal.bellard@slitaz.org"
LICENSE="LGPL3"
WEB_SITE="https://pypi.org/project/psycopg2/"

Version=${VERSION%.*}
Version=${Version/./-}
TARBALL="$PACKAGE-$VERSION.tar.gz"
WGET_URL="https://files.pythonhosted.org/packages/source/p/psycopg2/$TARBALL"

DEPENDS="egenix-mx-base libpostgresqlclient python"
BUILD_DEPENDS="postgresql-dev python-dev python-setuptools"

# What is the latest version available today?
current_version()
{
    wget -O - https://pypi.org/project/psycopg2/ 2>/dev/null | \
    sed '/psycopg2 [0-9]/!d;s|.*psycopg2 ||'
}

# Rules to configure and make the package.
compile_rules()
{
    sed -i 's/,PSYCOPG_DEBUG$//' setup.cfg

    python setup.py build &&
    python setup.py install --root=$DESTDIR
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    cp -a $install/usr $fs
}
6025 packages and 203154 files in current database (Thu Apr 25 06:17:47 2024)