[arch-commits] Commit in python-natsort/repos (2 files)

David Runge dvzrv at archlinux.org
Sun Sep 2 21:17:41 UTC 2018


    Date: Sunday, September 2, 2018 @ 21:17:40
  Author: dvzrv
Revision: 376090

archrelease: copy trunk to community-testing-any

Added:
  python-natsort/repos/community-testing-any/
  python-natsort/repos/community-testing-any/PKGBUILD
    (from rev 376089, python-natsort/trunk/PKGBUILD)

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

Copied: python-natsort/repos/community-testing-any/PKGBUILD (from rev 376089, python-natsort/trunk/PKGBUILD)
===================================================================
--- community-testing-any/PKGBUILD	                        (rev 0)
+++ community-testing-any/PKGBUILD	2018-09-02 21:17:40 UTC (rev 376090)
@@ -0,0 +1,41 @@
+# Maintainer: David Runge <dave at sleepmap.de>
+_name=natsort
+pkgname=python-natsort
+pkgver=5.3.3
+pkgrel=2
+pkgdesc="Simple yet flexible natural sorting in Python"
+arch=('any')
+url="https://github.com/SethMMorton/natsort"
+license=('MIT')
+depends=('python-setuptools')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-cov' 'python-pyflakes' 'flake8' 'python-hypothesis' 'python-mock')
+optdepends=('python-fastnumbers: more efficient sorting'
+            'python-pyicu: sort in locale dependant manner')
+source=("https://files.pythonhosted.org/packages/source/${_name::1}/${_name}/${_name}-${pkgver}.tar.gz")
+sha512sums=('3effdb73ecab7df705a809bb87ee2c93721bf897ceeea2500d1e205ee8f114dd92f46b530090dcaf4161cc4f5f6a51f45688ba780457a6c86c9494409e90634f')
+
+prepare() {
+  mv -v "${_name}-$pkgver" "$pkgname-$pkgver"
+}
+
+build() {
+  cd "$pkgname-$pkgver"
+  python setup.py build
+}
+
+check() {
+  cd "$pkgname-$pkgver"
+  export PYTHONPATH=build:${PYTHONPATH}
+  py.test
+}
+
+package() {
+  cd "$pkgname-$pkgver"
+  python setup.py install --skip-build \
+    --optimize=1 \
+    --prefix=/usr \
+    --root="${pkgdir}"
+  install -vDm 644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
+  install -vDm 644 README.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list