diff options
author | Erich Eckner <git@eckner.net> | 2021-12-04 16:36:21 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2021-12-04 16:36:21 +0100 |
commit | b1619feb35fb57241972a69378182f60dbe557f4 (patch) | |
tree | 3a03152c6520c64503351b57b4ced5cccf27b552 /python-openfoodfacts | |
parent | d3808f00d856d6afd1415ffc51eed15c22bbf886 (diff) | |
download | archlinuxewe-b1619feb35fb57241972a69378182f60dbe557f4.tar.xz |
python-openfoodfacts new
Diffstat (limited to 'python-openfoodfacts')
-rw-r--r-- | python-openfoodfacts/PKGBUILD | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/python-openfoodfacts/PKGBUILD b/python-openfoodfacts/PKGBUILD new file mode 100644 index 000000000..2129a9b83 --- /dev/null +++ b/python-openfoodfacts/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Erich Eckner <arch at eckner dot net> + +pkgname='python-openfoodfacts' +pkgver=0.1.2 +pkgrel=1 +arch=('any') +url='https://github.com/openfoodfacts/openfoodfacts-python' +license=('MIT') +pkgdesc='Open Food Facts client for your Python applications and scripts' +_pkgname="${pkgname#*-}" +source=("$_pkgname-$pkgver.tar.gz::https://github.com/openfoodfacts/openfoodfacts-python/archive/refs/tags/v$pkgver.tar.gz") +sha512sums=('64ceb1f6ed391e712bf34131caec78555a832fa2b291bd7e782e6b68fea6c778498f0c43b19de1852522bd2c27fafc07ef7cc0bc8c4a4905174c4f22c5ae06d3') +depends=( + 'python<3.10' + 'python>=3.9' + 'python-requests>=2.20.0') +makedepends=( + 'python-setuptools') +checkdepends=( + 'python-pip' + 'python-requests-mock>=1.8.0' + 'python-wheel') + +build() { + cd "${srcdir}/${_pkgname}-python-${pkgver}" + python setup.py build +} + +check() { + cd "${srcdir}/${_pkgname}-python-${pkgver}" + python setup.py test +} + +package() { + cd "${srcdir}/${_pkgname}-python-${pkgver}" + python setup.py install --root="$pkgdir" +} |