[arch-commits] Commit in python-softlayer/repos (2 files)
Brett Cornwall
ainola at gemini.archlinux.org
Thu Feb 3 05:57:45 UTC 2022
Date: Thursday, February 3, 2022 @ 05:57:44
Author: ainola
Revision: 1124064
archrelease: copy trunk to community-staging-any
Added:
python-softlayer/repos/community-staging-any/
python-softlayer/repos/community-staging-any/PKGBUILD
(from rev 1124063, python-softlayer/trunk/PKGBUILD)
----------+
PKGBUILD | 45 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 45 insertions(+)
Copied: python-softlayer/repos/community-staging-any/PKGBUILD (from rev 1124063, python-softlayer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2022-02-03 05:57:44 UTC (rev 1124064)
@@ -0,0 +1,45 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-softlayer
+pkgver=5.9.8
+pkgrel=1
+pkgdesc="A library for SoftLayer's API"
+arch=('any')
+license=('MIT')
+url='https://github.com/softlayer/softlayer-python'
+depends=('python-six' 'python-ptable' 'python-click' 'python-requests' 'python-prompt_toolkit'
+ 'python-pygments' 'python-urllib3')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner' 'python-mock' 'python-testtools' 'tk')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
+sha512sums=('3125489e59e810620c10b5a347015ed62c36c97794c30a4657135ff8e7cd0cd631505e8ce406c02559f652c52ecc0e9e597b8a110a3e0097b71233bc290ea0e4')
+
+prepare() {
+ cd softlayer-python-$pkgver
+ sed -i 's/==/>=/' setup.py
+}
+
+build() {
+ cd softlayer-python-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd softlayer-python-$pkgver
+ python setup.py pytest --addopts '-k "not test_edit_perms_on_bad"'
+}
+
+package() {
+ cd softlayer-python-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+ # It's only present when tests are enabled, so adding -f
+ rm -rf "$pkgdir"/usr/lib/python3.10/site-packages/tests
+
+ # Prevent collisions with `sl` package; This command is deemed deprecated by
+ # the project anyway
+ rm -f "$pkgdir/usr/bin/sl"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list