[arch-commits] Commit in (4 files)
Levente Polyak
anthraxx at gemini.archlinux.org
Wed Mar 30 23:29:11 UTC 2022
Date: Wednesday, March 30, 2022 @ 23:29:11
Author: anthraxx
Revision: 1177872
addpkg: python-ephemeral-port-reserve
Added:
python-ephemeral-port-reserve/
python-ephemeral-port-reserve/repos/
python-ephemeral-port-reserve/trunk/
python-ephemeral-port-reserve/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Added: python-ephemeral-port-reserve/trunk/PKGBUILD
===================================================================
--- python-ephemeral-port-reserve/trunk/PKGBUILD (rev 0)
+++ python-ephemeral-port-reserve/trunk/PKGBUILD 2022-03-30 23:29:11 UTC (rev 1177872)
@@ -0,0 +1,33 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+
+pkgname=python-ephemeral-port-reserve
+pkgver=1.1.4
+pkgrel=1
+pkgdesc='Bind to an ephemeral port'
+url='https://github.com/Yelp/ephemeral-port-reserve/'
+arch=('any')
+license=('MIT')
+depends=('python')
+makedepends=('python-setuptools' 'python-build' 'python-installer' 'python-wheel')
+checkdepends=('python-pytest')
+source=("${url}/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
+sha512sums=('e0412ac5ec362cffbd5efeb8c24a47ee36b50f2bf126438816824711f1f34412c903b116e96d4e541183925e7422b8f58bb0b7c5b819090d0f3d063cbf8c9f87')
+b2sums=('843ddbfe8b102c10b3166628ba2aa1ef40f3314a74ac5e944e4e6c500f3f0d871424ca37dbbe64bc385352ba3ee9895884e82fd169962db8b6bf96aaf131d078')
+
+build() {
+ cd ephemeral-port-reserve-${pkgver}
+ python -m build --wheel --no-isolation
+}
+
+check() {
+ cd ephemeral-port-reserve-${pkgver}
+ PYTHONPATH="build/lib" pytest
+}
+
+package() {
+ cd ephemeral-port-reserve-${pkgver}
+ python -m installer --destdir="$pkgdir" dist/*.whl
+ install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list