[arch-commits] Commit in (3 files)
Antonio Rojas
arojas at gemini.archlinux.org
Wed Jan 26 16:20:10 UTC 2022
Date: Wednesday, January 26, 2022 @ 16:20:09
Author: arojas
Revision: 1116022
New httpcore dependency
Added:
python-socksio/
python-socksio/trunk/
python-socksio/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Added: python-socksio/trunk/PKGBUILD
===================================================================
--- python-socksio/trunk/PKGBUILD (rev 0)
+++ python-socksio/trunk/PKGBUILD 2022-01-26 16:20:09 UTC (rev 1116022)
@@ -0,0 +1,30 @@
+# Maintainer:
+
+_pkgname=socksio
+pkgname=python-$_pkgname
+pkgver=1.0.0
+pkgrel=1
+pkgdesc='A minimal HTTP client'
+arch=(any)
+url='https://github.com/sethmlarson/socksio'
+license=(BSD)
+depends=(python)
+checkdepends=(python-pytest-cov)
+source=(https://pypi.python.org/packages/source/${_pkgname:0:1}/${_pkgname/-/_}/${_pkgname/-/_}-${pkgver}.tar.gz)
+sha256sums=('f88beb3da5b5c38b9890469de67d0cb0f9d494b78b106ca1845f96c10b91c4ac')
+
+build() {
+ cd $_pkgname-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd $_pkgname-$pkgver
+ PYTHONPATH="$PWD" pytest
+}
+
+package() {
+ cd $_pkgname-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+ install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
+}
More information about the arch-commits
mailing list