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

Evangelos Foutras foutrelis at archlinux.org
Mon Nov 9 19:53:11 UTC 2020


    Date: Monday, November 9, 2020 @ 19:53:11
  Author: foutrelis
Revision: 748094

archrelease: copy trunk to community-staging-any

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

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

Copied: python-itemloaders/repos/community-staging-any/PKGBUILD (from rev 748093, python-itemloaders/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 19:53:11 UTC (rev 748094)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-itemloaders
+pkgver=1.0.3
+pkgrel=2
+pkgdesc="Library to populate items using XPath and CSS with a convenient API"
+url="https://github.com/scrapy/itemloaders"
+license=('BSD')
+arch=('any')
+depends=('python-w3lib' 'python-parsel' 'python-jmespath' 'python-itemadapter')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://github.com/scrapy/itemloaders/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('94b69a5c6324835ec0a2408976795430313780e04559d21d0df6467cb7b952d2be5db78fe2ece0fc2ba6855b1c11426b75dcdad7440a4b2547bae1ec7c01df85')
+
+build() {
+  cd itemloaders-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd itemloaders-$pkgver
+  python -m pytest
+}
+
+package() {
+  cd itemloaders-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+
+  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
+}



More information about the arch-commits mailing list