Name python-jaraco.text
Description Module for text manipulation
Version 4.0.0-4
Package Base python-jaraco.text
Homepage https://github.com/jaraco/jaraco.text
Maintainers ['Antonio Rojas <arojas@archlinux.org>', 'Chih-Hsuan Yen <yan12125@archlinux.org>']
Contributors ['Kyle Keen <keenerd@gmail.com>']
Distro-repo https://gitlab.archlinux.org/archlinux/packaging/packages/python-jaraco.text
Sources ['git+https://github.com/jaraco/jaraco.text.git?signed#tag=v4.0.0']
Dependencies ['python', 'python-autocommand', 'python-jaraco.context', 'python-jaraco.functools', 'python-more-itertools']
Optional-Dependencies ['python-inflect']
Build-Dependencies ['git', 'python-build', 'python-installer', 'python-setuptools-scm', 'python-wheel']
Provides []
Builddate 26-12-2025 15:17:30
Architecture any
Distro-Version
Licenses ['MIT']
Hash df57d9e62cb16d23c45f10ae4658150db3e6a4059e41f9fbc4d5e5db05388e25
# Maintainer: Chih-Hsuan Yen <yan12125@archlinux.org>
# Contributor: Kyle Keen <keenerd@gmail.com>

pkgname=python-jaraco.text
# https://github.com/jaraco/jaraco.text/blob/main/NEWS.rst
pkgver=4.0.0
pkgrel=4
pkgdesc='Module for text manipulation'
arch=('any')
url='https://github.com/jaraco/jaraco.text'
license=('MIT')
depends=('python' 'python-jaraco.functools' 'python-jaraco.context' 'python-autocommand' 'python-more-itertools')
makedepends=('git' 'python-build' 'python-installer' 'python-setuptools-scm' 'python-wheel')
# python-inflect is not used in tests, but seems all files are imported by pytest now
checkdepends=('python-pytest' 'python-inflect')
optdepends=(
 'python-inflect: for show-newlines script'
)
conflicts=('python-jaraco')
replaces=('python-jaraco')
source=("git+https://github.com/jaraco/jaraco.text.git?signed#tag=v$pkgver")
sha512sums=('a08395ea1fab5aac0bf8fdef8225794b311ca7c8210fccda09a98298501cd695be1834355e31ed7457d1752c59e65da7d29b93ab292f7816d88b04465c561803')
validpgpkeys=(
  'CE380CF3044959B8F377DA03708E6CB181B4C47E' # https://github.com/jaraco.gpg
)

build() {
  cd "$srcdir/jaraco.text"
  python -m build --wheel --no-isolation
}

check() {
  cd "$srcdir/jaraco.text"
  PYTHONPATH="$PWD" pytest
}

package() {
  cd "$srcdir/jaraco.text"
  python -m installer --destdir="$pkgdir" dist/*.whl
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et: