wok-current view python-gevent-psycopg2/receipt @ rev 25379

updated uget (2.2.1 -> 2.2.3)
author Hans-G?nter Theisgen
date Sat Jul 30 15:37:46 2022 +0100 (2022-07-30)
parents a78610b2eb47
children
line source
1 # SliTaz package receipt.
3 PACKAGE="python-gevent-psycopg2"
4 SOURCE="gevent-psycopg2"
5 VERSION="0.0.3"
6 CATEGORY="development"
7 SHORT_DESC="Patch psycopg2 to use gevent."
8 MAINTAINER="pascal.bellard@slitaz.org"
9 LICENSE="PublicDomain"
10 TARBALL="$SOURCE-$VERSION.tar.gz"
11 WEB_SITE="https://github.com/zacharyvoase/gevent-psycopg2"
12 WGET_URL="https://pypi.python.org/packages/source/${SOURCE:0:1}/$SOURCE/$TARBALL"
14 DEPENDS="psycopg2 python-gevent"
15 BUILD_DEPENDS="wget python-distribute python-dev python openssl"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/[A-Za-z_-]*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 sed -i -e 's|import sys|&\nimport ssl|' -e 's|http:|https:|' -e \
28 's|.*urlopen(url|\t ssl._create_default_https_context = ssl._create_unverified_context\n&|' \
29 distribute_setup.py
30 python setup.py build &&
31 python setup.py install --root=$DESTDIR
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs
38 cp -a $install/usr $fs
39 }