[arch-commits] Commit in (4 files)
David Runge
dvzrv at archlinux.org
Sat Jan 11 18:27:09 UTC 2020
Date: Saturday, January 11, 2020 @ 18:27:08
Author: dvzrv
Revision: 552009
Adding python-inflect as depends for python-diff-cover (a checkdepends for mailman3).
Added:
python-inflect/
python-inflect/repos/
python-inflect/trunk/
python-inflect/trunk/PKGBUILD
----------+
PKGBUILD | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)
Added: python-inflect/trunk/PKGBUILD
===================================================================
--- python-inflect/trunk/PKGBUILD (rev 0)
+++ python-inflect/trunk/PKGBUILD 2020-01-11 18:27:08 UTC (rev 552009)
@@ -0,0 +1,44 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=inflect
+pkgname=python-inflect
+pkgver=4.0.0
+pkgrel=1
+pkgdesc="Correctly generate plurals, singular nouns, ordinals, indefinite articles"
+arch=('any')
+url="https://github.com/jazzband/inflect"
+license=('MIT')
+depends=('python')
+makedepends=('python-dephell' 'python-setuptools')
+checkdepends=('flake8' 'python-black' 'python-coverage' 'python-pytest'
+'python-pytest-black' 'python-pytest-cov' 'python-pytest-flake8')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('7d9ef9389b9301e596165fcb1774467ddeb421636094a0f0cebbcaa11558b4529ccb90644e1097f91cff3316911c98f4bb1df92180193a5313ca7da91a282e5c')
+
+prepare() {
+ mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+ cd "$pkgname-$pkgver"
+ dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ export PYTHONPATH="build:${PYTHONPATH}"
+ pytest -v --ignore setup.py
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --skip-build \
+ --optimize=1 \
+ --prefix=/usr \
+ --root="${pkgdir}"
+ install -vDm 644 {{CHANGES,README}.rst,CONTRIBUTING.md} \
+ -t "${pkgdir}/usr/share/doc/${pkgname}"
+ install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+}
More information about the arch-commits
mailing list