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

Evangelos Foutras foutrelis at gemini.archlinux.org
Tue Nov 30 20:25:07 UTC 2021


    Date: Tuesday, November 30, 2021 @ 20:25:06
  Author: foutrelis
Revision: 1058236

archrelease: copy trunk to community-staging-any

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

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

Copied: python-itemadapter/repos/community-staging-any/PKGBUILD (from rev 1058234, python-itemadapter/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2021-11-30 20:25:06 UTC (rev 1058236)
@@ -0,0 +1,31 @@
+# Maintainer: Felix Yan <felixonmars at archlinux.org>
+
+pkgname=python-itemadapter
+pkgver=0.4.0
+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-pydantic' 'python-pytest' 'scrapy')
+source=("https://github.com/scrapy/itemadapter/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha512sums=('c7226c2e0e8c2f1695ec62e67a60b99ed92f4e71c9003a274292df91cef54abc382f614eb08422be6d532c0e91fa0bf962d2b5f6b2220e107b5ba43d921be15d')
+
+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