Date: Thursday, April 6, 2023 @ 16:52:18
  Author: felixonmars
Revision: 1439750

archrelease: copy trunk to community-staging-any

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

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

Copied: python-termcolor/repos/community-staging-any/PKGBUILD (from rev 
1439748, python-termcolor/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD                              (rev 0)
+++ community-staging-any/PKGBUILD      2023-04-06 16:52:18 UTC (rev 1439750)
@@ -0,0 +1,31 @@
+# Maintainer: Sergej Pupykin <[email protected]>
+# Maintainer: Tim Hatch <[email protected]>
+
+pkgname=python-termcolor
+pkgver=2.2.0
+pkgrel=2
+pkgdesc="ANSI Color formatting for output in terminal"
+arch=('any')
+license=('MIT')
+url="https://github.com/termcolor/termcolor";
+depends=('python')
+makedepends=('python-build' 'python-installer' 'python-hatch-vcs')
+checkdepends=('python-pytest')
+source=(https://pypi.python.org/packages/source/t/termcolor/termcolor-$pkgver.tar.gz)
+sha256sums=('dfc8ac3f350788f23b2947b3e6cfa5a53b630b612e6cd8965a015a776020b99a')
+
+build() {
+  cd termcolor-$pkgver
+  python -m build --no-isolation --wheel
+}
+
+check() {
+  cd termcolor-$pkgver
+  PYTHONPATH="$PWD/src" pytest
+}
+
+package() {
+  cd termcolor-$pkgver
+  python -m installer --destdir="$pkgdir" dist/*.whl
+  install -Dm644 COPYING.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
+}

Reply via email to