[arch-commits] Commit in python-cattrs/repos (community-any community-any/PKGBUILD)

Caleb Maclennan alerque at gemini.archlinux.org
Tue Feb 8 14:10:30 UTC 2022


    Date: Tuesday, February 8, 2022 @ 14:10:30
  Author: alerque
Revision: 1129231

archrelease: copy trunk to community-any

Added:
  python-cattrs/repos/community-any/
  python-cattrs/repos/community-any/PKGBUILD
    (from rev 1129230, python-cattrs/trunk/PKGBUILD)

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

Copied: python-cattrs/repos/community-any/PKGBUILD (from rev 1129230, python-cattrs/trunk/PKGBUILD)
===================================================================
--- community-any/PKGBUILD	                        (rev 0)
+++ community-any/PKGBUILD	2022-02-08 14:10:30 UTC (rev 1129231)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+
+_pipname=cattrs
+pkgname=python-${_pipname,,}
+pkgver=1.10.0
+pkgrel=3
+pkgdesc='Complex custom class converters for attrs'
+arch=(any)
+url="https://github.com/Tinche/$_pipname"
+license=(MIT)
+depends=(python
+         python-attrs)
+makedepends=(python-setuptools)
+# PyPi source release currently missing tests
+# checkdepends=(python-pytest)
+_archive="$_pipname-$pkgver"
+source=("https://files.pythonhosted.org/packages/source/${_pipname::1}/$_pipname/$_archive.tar.gz")
+sha256sums=('211800f725cdecedcbcf4c753bbd22d248312b37d130f06045434acb7d9b34e1')
+
+# prepare() {
+#     cd "$_archive"
+#     # Upstream test suite uses addopts to run benchmarks, drop them
+#     sed -i -e '/^addopts/d' pyproject.toml
+# }
+
+build() {
+	cd "$_archive"
+	python setup.py build
+}
+
+# check() {
+#     cd "$_archive"
+#     pytest
+# }
+
+package() {
+	cd "$_archive"
+	python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+	install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" LICENSE
+}



More information about the arch-commits mailing list