summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 53378fe0b6440307486d7f43f2e8424a1e8f3895 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Maintainer: Matthew Sexton <matthew@Asylumtech.com>

pkgname=python-curl-cffi
_name=curl_cffi
pkgver=0.5.6
pkgrel=2
pkgdesc="Python binding for curl-impersonate via CFFI"
arch=('any')
url="https://github.com/yifeikong/curl_cffi"
license=('GPL3')
depends=( 'python-gevent' 'python-eventlet' 'curl-impersonate-chrome' 'python-cffi')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel' )
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('30eea55149bd66dbb11aa467e3b4e039085bfac38da7fb8ae694425d9b7061da')

build() {
  cd "${_name}-$pkgver"
  python -m build --wheel --no-isolation
}

package() {
  cd "${_name}-$pkgver"
  python -m installer --destdir="$pkgdir" dist/*.whl
}