aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprspkt <prspkt@protonmail.com>2020-06-26 22:39:31 +0300
committerLeo <thinkabit.ukim@gmail.com>2020-06-30 18:18:33 -0300
commitb7add5a98118d52d4e64bcf67d0d2485935242c0 (patch)
treee3aa1cc413c1ebb59d2a3de554f3ed871aa199d4
parent9ca91dd2539fcbb2cf03a8cc258afccc6d59bf4c (diff)
downloadaports-b7add5a98118d52d4e64bcf67d0d2485935242c0.tar.gz
aports-b7add5a98118d52d4e64bcf67d0d2485935242c0.tar.bz2
aports-b7add5a98118d52d4e64bcf67d0d2485935242c0.tar.xz
testing/py3-protego: new aport
* Runtime dependency for py3-scrapy>=2.2.0
-rw-r--r--testing/py3-protego/APKBUILD28
1 files changed, 28 insertions, 0 deletions
diff --git a/testing/py3-protego/APKBUILD b/testing/py3-protego/APKBUILD
new file mode 100644
index 0000000000..3a7b462e1d
--- /dev/null
+++ b/testing/py3-protego/APKBUILD
@@ -0,0 +1,28 @@
+# Contributor: prspkt <prspkt@protonmail.com>
+# Maintainer: prspkt <prspkt@protonmail.com>
+pkgname=py3-protego
+pkgver=0.1.16
+pkgrel=0
+pkgdesc="Pure-Python robots.txt parser with support for modern conventions"
+url="https://github.com/scrapy/protego"
+arch="noarch"
+license="BSD-3-Clause"
+depends="python3 py3-six"
+makedepends="py3-setuptools"
+checkdepends="py3-pytest"
+source="https://files.pythonhosted.org/packages/source/P/Protego/Protego-$pkgver.tar.gz"
+builddir="$srcdir/Protego-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ PYTHONPATH="$builddir/build/lib/:$PYTHONPATH" python3 -m pytest
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="437a52eb05d77db0d084a572a528e92ff71702ea46df794b081f8ca0338d92a89035bd4f02891ae636b8662ecd4c4e129c4e54d4267b1ea36d40df6dd616b9a0 Protego-0.1.16.tar.gz"