~sircmpwn/sr.ht-packages

sr.ht-pkgbuilds: Update upstream releases v2 SUPERSEDED

Thorben Günther: 1
 Update upstream releases

 3 files changed, 29 insertions(+), 8 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~sircmpwn/sr.ht-packages/patches/22523/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH sr.ht-pkgbuilds v2] Update upstream releases Export this patch

Add check to python-minio and python-stripe.
---
Since I have never before built and ran a check-dependency in the
check() step this is probably quite ugly.
 python-minio/PKGBUILD      | 11 +++++++++--
 python-stripe/PKGBUILD     | 20 +++++++++++++++++---
 python-weasyprint/PKGBUILD |  6 +++---
 3 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/python-minio/PKGBUILD b/python-minio/PKGBUILD
index d0dda98..c57cb55 100644
--- a/python-minio/PKGBUILD
+++ b/python-minio/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=python-minio
_pkgname=minio
pkgver=7.0.1
pkgver=7.0.3
pkgrel=1
pkgdesc='MinIO Python Library for Amazon S3 Compatible Cloud Storage'
arch=(any)
@@ -9,14 +9,21 @@ url=https://pypi.org/project/minio/
license=('Apache')
depends=("python-certifi" "python-urllib3")
makedepends=(python-setuptools)
checkdepends=('python-nose' 'python-mock')
source=($pkgname-$pkgver.tar.gz::https://github.com/minio/minio-py/archive/$pkgver.tar.gz)
sha256sums=('a5a21574c708fda7a6ffffb3268ce0040e6279f08a8cce081eb8f3a70db0ee71')
sha256sums=('ef0a35539faa4b917b62113747269e308a2d2a1b2cb1e7a112cb2cfebf931b3e')

build() {
  cd "${srcdir}"/minio-py-${pkgver}
  python setup.py build
}

check() {
  cd "${srcdir}"/minio-py-${pkgver}

  nosetests
}

package() {
  cd "${srcdir}"/minio-py-${pkgver}
  python setup.py install --root="${pkgdir}" --optimize=1
diff --git a/python-stripe/PKGBUILD b/python-stripe/PKGBUILD
index 26708f8..d9cf23a 100644
--- a/python-stripe/PKGBUILD
+++ b/python-stripe/PKGBUILD
@@ -1,16 +1,30 @@
# Maintainer: Dylan Whichard <dylan@whichard.com>
_name=stripe
pkgname=python-stripe
pkgver=2.55.1
pkgver=2.56.0
pkgrel=1
pkgdesc='Stripe python bindings'
arch=('any')
url="https://github.com/stripe/stripe-python"
license=('MIT')
depends=('python>=3.4')
depends=('python>=3.4' 'python-requests')
makedepends=('python-setuptools')
checkdepends=('go' 'python-pytest-mock')
source=("https://pypi.python.org/packages/source/${_name:0:1}/$_name/$_name-$pkgver.tar.gz")
sha256sums=('6b70e2cf87cfbe0cb891b725b690495bc3d34ab0d82545a5989ecd3b5fa83e2a')
sha256sums=('2ff904fb8dee0d25f135059468a876852d24dc8cbe0b45d7aff56a028045777c')

check(){
    export GOPATH='/tmp/go'
    go get -u github.com/stripe/stripe-mock
    $GOPATH/bin/stripe-mock&
    PID=$!
    sleep 5

    cd "$srcdir/$_name-$pkgver"
    python -m pytest

    kill $PID
}

package() {
	cd "$srcdir/$_name-$pkgver"
diff --git a/python-weasyprint/PKGBUILD b/python-weasyprint/PKGBUILD
index 4104f67..eb638b3 100644
--- a/python-weasyprint/PKGBUILD
+++ b/python-weasyprint/PKGBUILD
@@ -2,7 +2,7 @@

_pkgname=WeasyPrint
pkgname=python-weasyprint
pkgver=52.2
pkgver=52.4
pkgrel=1
pkgdesc="visual rendering engine for HTML and CSS that can export to PDF and PNG"
arch=('any')
@@ -14,8 +14,8 @@ depends=('gdk-pixbuf2' 'pango' "${_py_deps[@]/#/python-}")
makedepends=('python-setuptools')
checkdepends=('python-pytest' 'ttf-dejavu')
source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
sha256sums=('21a1a9f11650ed14241817bf333a0ae0a42f6ae38cd7c2654845cb17352b7434')
b2sums=('33a41593dd50c8f4a5738f9e41b570219d83a512a6c00ccc9b0fa9ddf4ab1040e1c5c95eada833810a9c6bc07efbacc5735f6a5e341a6b8b01b128651b5c4fa4')
sha256sums=('8b648d35b1e828ce321078fe593ef9267c35280242fd8f673c91f48e417a4a5f')
b2sums=('ead641007e84664dfc1a9b95a227d5c6539e19e629d95d68b663b46a873ffa83b203897dd4d03c5d72f00e2737268c64624b97a37840c86d4a555f5b1a20a7bb')

prepare(){
    cd "${srcdir}"/${_pkgname}-${pkgver}
-- 
2.31.1