Date: Friday, August 26, 2022 @ 17:42:29 Author: felixonmars Revision: 1283455
addpkg: python-softlayer-zeep 5.0.0-1 Added: python-softlayer-zeep/ python-softlayer-zeep/repos/ python-softlayer-zeep/trunk/ python-softlayer-zeep/trunk/PKGBUILD ----------+ PKGBUILD | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) Added: python-softlayer-zeep/trunk/PKGBUILD =================================================================== --- python-softlayer-zeep/trunk/PKGBUILD (rev 0) +++ python-softlayer-zeep/trunk/PKGBUILD 2022-08-26 17:42:29 UTC (rev 1283455) @@ -0,0 +1,35 @@ +# Maintainer: Felix Yan <felixonm...@archlinux.org> + +pkgname=python-softlayer-zeep +pkgver=5.0.0 +pkgrel=1 +pkgdesc="A modern/fast python SOAP client based on lxml / requests" +url="https://github.com/softlayer/softlayer-zeep" +license=('MIT') +arch=('any') +conflicts=('python-zeep') +provides=('python-zeep') +depends=('python-attrs' 'python-isodate' 'python-lxml' 'python-platformdirs' 'python-requests' + 'python-requests-toolbelt' 'python-requests-file' 'python-pytz') +makedepends=('python-setuptools') +checkdepends=('python-pytest' 'python-freezegun' 'python-pretend' 'python-pytest-cov' + 'python-pytest-httpx' 'python-pytest-asyncio' 'python-requests-mock') +source=("https://github.com/softlayer/softlayer-zeep/archive/$pkgver/$pkgname-$pkgver.tar.gz") +sha512sums=('354126cc6f133624db953efd6cd17b6aefc64681c0f13a76afdcb8839c13f11712de86f3312130ecd1a970d3718e2a3c815e600f8e86d6d0cd77fdd4bd2ba474') + +build() { + cd softlayer-zeep-$pkgver + python setup.py build +} + +check() { + cd softlayer-zeep-$pkgver + PYTHONPATH="$PWD"/build/lib pytest +} + +package() { + cd softlayer-zeep-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 + + install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/ +}