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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:52:57 UTC 2020


    Date: Monday, November 9, 2020 @ 15:52:57
  Author: felixonmars
Revision: 747210

archrelease: copy trunk to community-staging-any

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

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

Copied: python-jsonlines/repos/community-staging-any/PKGBUILD (from rev 747209, python-jsonlines/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:52:57 UTC (rev 747210)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-jsonlines
+pkgver=1.2.0
+pkgrel=6
+pkgdesc="Library with helpers for the jsonlines file format"
+url="https://github.com/wbolster/jsonlines"
+license=('BSD')
+arch=('any')
+depends=('python-six')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/wbolster/jsonlines/archive/$pkgver.tar.gz")
+sha512sums=('21af1c74024e1db9e301be0cd025b4cd82899059ecb3fde4c9a6ab4087ef413b7ecb6b5c41bdbb45ed1a48247c88c532c3671a4407890f96207616d2f7467c34')
+
+build() {
+  cd "$srcdir"/jsonlines-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd "$srcdir"/jsonlines-$pkgver
+  python setup.py pytest
+}
+
+package() {
+  cd jsonlines-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -Dm644 LICENSE.rst "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.rst
+}



More information about the arch-commits mailing list