[arch-commits] Commit in python-softlayer/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 04:11:40 UTC 2019


    Date: Monday, November 4, 2019 @ 04:11:39
  Author: felixonmars
Revision: 523108

archrelease: copy trunk to community-staging-any

Added:
  python-softlayer/repos/community-staging-any/
  python-softlayer/repos/community-staging-any/PKGBUILD
    (from rev 523107, python-softlayer/trunk/PKGBUILD)

----------+
 PKGBUILD |   38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

Copied: python-softlayer/repos/community-staging-any/PKGBUILD (from rev 523107, python-softlayer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2019-11-04 04:11:39 UTC (rev 523108)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-softlayer
+pkgver=5.8.1
+pkgrel=2
+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')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/softlayer/softlayer-python/archive/v$pkgver.tar.gz")
+sha512sums=('19cbd28835dfb3b51c26e108f675d533a930e7360734164b86c2a8c5af7178da42b5310874cca4ef25fdc07b6a6f9012394131d497486c1d347f8ad131520ffd')
+
+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
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list