[arch-commits] Commit in python-json-stream/repos (2 files)
Kpcyrd
kpcyrd at gemini.archlinux.org
Mon May 16 16:10:21 UTC 2022
Date: Monday, May 16, 2022 @ 16:10:20
Author: kpcyrd
Revision: 1207553
archrelease: copy trunk to community-any
Added:
python-json-stream/repos/community-any/
python-json-stream/repos/community-any/PKGBUILD
(from rev 1207552, python-json-stream/trunk/PKGBUILD)
----------+
PKGBUILD | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
Copied: python-json-stream/repos/community-any/PKGBUILD (from rev 1207552, python-json-stream/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2022-05-16 16:10:20 UTC (rev 1207553)
@@ -0,0 +1,27 @@
+# Maintainer: kpcyrd <kpcyrd[at]archlinux[dot]org>
+
+_pyname=json-stream
+pkgname=python-${_pyname}
+pkgver=1.3.0
+pkgrel=1
+pkgdesc='Simple streaming JSON parser'
+arch=(any)
+url="https://github.com/daggaz/json-stream"
+license=('MIT')
+depends=('python')
+makedepends=(python-build python-installer python-setuptools python-wheel)
+source=("https://files.pythonhosted.org/packages/source/${_pyname::1}/${_pyname}/${_pyname}-${pkgver}.tar.gz")
+b2sums=('f5318e62c9311352ce2997cd5db039570a2d6f15960497a28a8e0f570548abf30ed1248100831379215c621c52639c0c3a3e768f13fa2a8def06f65b400588bf')
+
+build() {
+ cd "${_pyname}-${pkgver}"
+ python -m build --wheel --no-isolation
+}
+
+package() {
+ cd "${_pyname}-${pkgver}"
+ python -m installer --destdir="${pkgdir}" dist/*.whl
+ install -Dm644 LICENSE.txt -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
+
+# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list