summaryrefslogtreecommitdiff
path: root/user/py3-parsedatetime/APKBUILD
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:10:48 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:27 -0800
commit468cc508ee339b3ca9bc2eb475530508cf5f11fb (patch)
tree5aa7283364451f03e151df22215693851fddb876 /user/py3-parsedatetime/APKBUILD
parentb22f68efd7810a99f26cf81990f88ea8c8b62abc (diff)
downloadpackages-468cc508ee339b3ca9bc2eb475530508cf5f11fb.tar.gz
packages-468cc508ee339b3ca9bc2eb475530508cf5f11fb.tar.bz2
packages-468cc508ee339b3ca9bc2eb475530508cf5f11fb.tar.xz
packages-468cc508ee339b3ca9bc2eb475530508cf5f11fb.zip
user/py3-parsedatetime: new package
Diffstat (limited to 'user/py3-parsedatetime/APKBUILD')
-rw-r--r--user/py3-parsedatetime/APKBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/user/py3-parsedatetime/APKBUILD b/user/py3-parsedatetime/APKBUILD
new file mode 100644
index 000000000..945b5ed8a
--- /dev/null
+++ b/user/py3-parsedatetime/APKBUILD
@@ -0,0 +1,29 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
+# Maintainer: zlg <zlg+adelie@zlg.space>
+pkgname=py3-parsedatetime
+_pkgname=parsedatetime
+pkgver=2.4
+pkgrel=0
+pkgdesc="Parse human-readable date/time strings"
+url="https://github.com/bear/parsedatetime"
+arch="noarch"
+options="!check" # flake8, mccabe
+license="Apache"
+depends="python3 py3-future"
+makedepends="python3-dev"
+source="$_pkgname-$pkgver.tar.gz::https://github.com/bear/$_pkgname/archive/v$pkgver.tar.gz"
+
+builddir="$srcdir/$_pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+ python3 setup.py build
+}
+
+package() {
+ cd "$builddir"
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="0fd8bfa3411476a20d8874b44036bc162735fb7865d39ca98b0a608daec39daac47100314279dbf66229ec333821492744f7505315d955f58216fdaa75cbf046 parsedatetime-2.4.tar.gz"