[arch-commits] Commit in python-itemloaders/repos (2 files)
Felix Yan
felixonmars at archlinux.org
Wed Aug 5 12:19:30 UTC 2020
Date: Wednesday, August 5, 2020 @ 12:19:29
Author: felixonmars
Revision: 669404
archrelease: copy trunk to community-any
Added:
python-itemloaders/repos/community-any/
python-itemloaders/repos/community-any/PKGBUILD
(from rev 669403, python-itemloaders/trunk/PKGBUILD)
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Copied: python-itemloaders/repos/community-any/PKGBUILD (from rev 669403, python-itemloaders/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD (rev 0)
+++ community-any/PKGBUILD 2020-08-05 12:19:29 UTC (rev 669404)
@@ -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