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

Felix Yan felixonmars at archlinux.org
Mon Nov 9 15:37:55 UTC 2020


    Date: Monday, November 9, 2020 @ 15:37:54
  Author: felixonmars
Revision: 747036

archrelease: copy trunk to community-staging-any

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

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

Copied: python-itemadapter/repos/community-staging-any/PKGBUILD (from rev 747033, python-itemadapter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-09 15:37:54 UTC (rev 747036)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-itemadapter
+pkgver=0.1.1
+pkgrel=2
+pkgdesc="Common interface for data container classes"
+url="https://github.com/scrapy/itemadapter"
+license=('BSD')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-attrs' 'python-pytest' 'scrapy')
+source=("https://github.com/scrapy/itemadapter/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('b3ab8cbee8d75bf6b98c8438125585e1aeee4e94aa203e1fba864446c48c3015e8778078e56ba8b3709fec92e57c40bf0d3a5b0c82cc65f42eff0a77e95c0bc8')
+
+build() {
+  cd itemadapter-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd itemadapter-$pkgver
+  pytest
+}
+
+package() {
+  cd itemadapter-$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