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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 04:14:27 UTC 2020


    Date: Tuesday, November 10, 2020 @ 04:14:27
  Author: foutrelis
Revision: 748589

archrelease: copy trunk to community-staging-any

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

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

Copied: python-softlayer/repos/community-staging-any/PKGBUILD (from rev 748588, python-softlayer/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 04:14:27 UTC (rev 748589)
@@ -0,0 +1,38 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-softlayer
+pkgver=5.9.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=('d0a17e8c8a7a01792dcf7e2c0e0096cfeb2c8f9addb454117f5f6db30cc40e5b97bdfe4e866f6445f5d7311a82c25bf39d00c02889c94f8471af5b39948dcf01')
+
+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