Date: Tuesday, February 8, 2022 @ 14:09:48
  Author: alerque
Revision: 1129230

Migrate python-cattrs from AUR

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

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

Added: python-cattrs/trunk/PKGBUILD
===================================================================
--- python-cattrs/trunk/PKGBUILD                                (rev 0)
+++ python-cattrs/trunk/PKGBUILD        2022-02-08 14:09:48 UTC (rev 1129230)
@@ -0,0 +1,40 @@
+# Maintainer: Caleb Maclennan <ca...@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
+}

Reply via email to