blob: 4c78732be96c14817df1f60173affe8ebb35a1b5 (
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
25
26
27
28
29
|
# Maintainer: Stewart <goodmans at protonmail dot com>
pkgname=curlify
pkgdesc='Library to convert python requests object to curl command.'
pkgver=2.2.1
pkgrel=1
url='https://github.com/ofw/curlify'
license=('MIT')
arch=('any')
depends=('python-requests')
makedepends=('python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
source=(
"https://files.pythonhosted.org/packages/source/${pkgname::1}/$pkgname/${pkgname//-/_}-$pkgver.tar.gz"
)
sha256sums=(
'0d3f02e7235faf952de8ef45ef469845196d30632d5838bcd5aee217726ddd6d'
)
build() {
cd "${pkgname//-/_}-$pkgver"
python -m build --wheel --no-isolation
}
package() {
cd "${pkgname//-/_}-$pkgver"
python -m installer --destdir="$pkgdir" "dist/${pkgname//-/_}-$pkgver-"*.whl
}
|