[arch-commits] Commit in (4 files)

Felix Yan felixonmars at archlinux.org
Wed Aug 5 12:19:15 UTC 2020


    Date: Wednesday, August 5, 2020 @ 12:19:15
  Author: felixonmars
Revision: 669403

addpkg: python-itemloaders 1.0.1-1

Added:
  python-itemloaders/
  python-itemloaders/repos/
  python-itemloaders/trunk/
  python-itemloaders/trunk/PKGBUILD

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

Added: python-itemloaders/trunk/PKGBUILD
===================================================================
--- python-itemloaders/trunk/PKGBUILD	                        (rev 0)
+++ python-itemloaders/trunk/PKGBUILD	2020-08-05 12:19:15 UTC (rev 669403)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-itemloaders
+pkgver=1.0.1
+pkgrel=1
+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=('96600a563cfd7f50eb88de5a797c99e46d855408886103580baaf38d38a9a124b7cd4a0c9c1006eda23cc39b6c73490cbe003a409a9e5a8e9ae60ddfbcedc8b6')
+
+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