[arch-commits] Commit in (3 files)

Maxime Gauduin alucryd at archlinux.org
Wed Sep 11 11:50:02 UTC 2019


    Date: Wednesday, September 11, 2019 @ 11:50:02
  Author: alucryd
Revision: 509272

add dateparser as checkdepends for arrow

Added:
  python-dateparser/
  python-dateparser/trunk/
  python-dateparser/trunk/PKGBUILD

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

Added: python-dateparser/trunk/PKGBUILD
===================================================================
--- python-dateparser/trunk/PKGBUILD	                        (rev 0)
+++ python-dateparser/trunk/PKGBUILD	2019-09-11 11:50:02 UTC (rev 509272)
@@ -0,0 +1,43 @@
+# Maintainer: Maxime Gauduin <alucryd at archlinux.org>
+# Contributor: Stefan Husmann <stefan-husmann at t-online.de>
+
+pkgname=python-dateparser
+pkgver=0.7.1
+pkgrel=1
+pkgdesc='Python parser for human readable dates'
+url=https://github.com/scrapinghub/dateparser
+arch=(any)
+license=(BSD)
+depends=(
+  python-dateutil
+  python-regex
+  python-tzlocal
+  python-ruamel-yaml
+)
+makedepends=(
+  git
+  python-setuptools
+)
+source=(git+https://github.com/scrapinghub/dateparser.git#tag=v0.7.1)
+sha256sums=(SKIP)
+
+pkgver() {
+  cd dateparser
+
+  git describe --tags | sed 's/^v//'
+}
+
+build() {
+  cd dateparser
+
+  python setup.py build
+}
+
+package() {
+  cd dateparser
+
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+  install -Dm 644 LICENSE -t "${pkgdir}"/usr/share/licenses/python-dateparser/
+}
+
+# vim: ts=2 sw=2 et:


More information about the arch-commits mailing list