forked from ports/contrib
23 lines
697 B
Plaintext
23 lines
697 B
Plaintext
# Description: HTTP Request and Response Service
|
|
# URL: https://github.com/requests/httpbin
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: brotli python3-blinker python3-decorator python3-flasgger python3-gevent python3-raven
|
|
|
|
name=httpbin
|
|
version=0.7.0
|
|
release=1
|
|
source=(https://github.com/requests/httpbin/archive/v$version/$name-$version.tar.gz
|
|
httpbin-werkzeug-0.15.1.patch)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
patch -Np1 -i $SRC/httpbin-werkzeug-0.15.1.patch
|
|
sed -i 's/brotlipy/Brotli/g' setup.py
|
|
LC_CTYPE=en_US.UTF-8 /usr/bin/python3 setup.py build
|
|
LC_CTYPE=en_US.UTF-8 /usr/bin/python3 setup.py install --prefix=/usr \
|
|
--root=$PKG \
|
|
-O1 \
|
|
--skip-build
|
|
}
|