wok-current view python-gevent-psycopg2/receipt @ rev 21713
get-LibreOffice: fix menu entries (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jun 09 11:37:02 2019 +0200 (2019-06-09) |
parents | 02335b48dae1 |
children | b569b85b0fb9 |
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 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e 's|import sys|&\nimport ssl|' -e 's|http:|https:|' -e \
21 's|.*urlopen(url|\t ssl._create_default_https_context = ssl._create_unverified_context\n&|' \
22 distribute_setup.py
23 python setup.py build &&
24 python setup.py install --root=$DESTDIR
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs
31 cp -a $install/usr $fs
32 }