You are not logged in.
Hi,
I'd like to kindly ask for a review of my first two pkgbuild I want to push to the AUR.
# Contributor: Patrick Mischke
pkgname='python-ibmcloudant'
_name='ibmcloudant'
pkgver=0.0.35
pkgrel=1
pkgdesc="Python Library for Cloudant and CouchDB Access"
url="https://github.com/IBM/cloudant-python-sdk"
depends=('python-requests' 'python-dateutils' 'python-websocket-client' 'python-jproperties' 'python-ibm-cloud-sdk-core')
makedepends=('python-setuptools')
license=('Apache')
arch=('any')
source=("https://files.pythonhosted.org/packages/source/${_name::1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('95a4d08433e787371e560297977155320b8217b2e971043b98bff67a7415c251')
build() {
cd "$_name-$pkgver"
python setup.py build
}
package() {
cd "$_name-$pkgver"
python setup.py install --prefix=/usr --root="${pkgdir}" --optimize=1 --skip-build
}
The python-cloudant package is deprecated (https://github.com/cloudant/python-cloudant) and users are asked to migrate to the ibmcloudant package - therefore it seemed useful for me to have it available on the AUR. I am not associated with IBM, but as they use the Apache license that should not matter.
Thanks for your feedback!
Last edited by Patschke (2021-08-19 11:57:45)
Offline
Looks fine.
Offline
requirements.txt lists python_dateutil rather than python_dateutils as listed in the PKGBUILD.
Offline
Good catch with the typo in dateutil. python-ibm-cloud-sdk-core doesn't exist as an package yet, so I'll create that with the same scheme as well.
Thanks for the responses!
Offline