aboutsummaryrefslogtreecommitdiffstats
path: root/testing/py-rfc3339
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-10-21 14:27:02 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-10-21 14:27:02 +0200
commit7d921843fe7748e03e255017d7be6aea1f485c1e (patch)
treee8a436602ce6af073310b8a626c794e8fa0ad7c6 /testing/py-rfc3339
parentc7a55da8cd55938d04b40896c566505e28f0e25e (diff)
downloadaports-7d921843fe7748e03e255017d7be6aea1f485c1e.tar.bz2
aports-7d921843fe7748e03e255017d7be6aea1f485c1e.tar.xz
testing/py-rfc3339: new aport
Diffstat (limited to 'testing/py-rfc3339')
-rw-r--r--testing/py-rfc3339/APKBUILD41
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-rfc3339/APKBUILD b/testing/py-rfc3339/APKBUILD
new file mode 100644
index 0000000000..6bd2e4a06a
--- /dev/null
+++ b/testing/py-rfc3339/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=py-rfc3339
+pkgver=0.2
+pkgrel=0
+pkgdesc="Generate and parse RFC 3339 timestamps"
+url="https://pypi.python.org/pypi/pyRFC3339"
+arch="noarch"
+license="MIT"
+depends="py-tz"
+depends_dev=""
+makedepends="$depends_dev py-setuptools"
+install=""
+subpackages=""
+source="https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-$pkgver.tar.gz"
+
+_builddir="$srcdir"/pyRFC3339-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="5e0f7e40e363812180fffaae52daf2e6 pyRFC3339-0.2.tar.gz"
+sha256sums="a504ff6bcb363fa402d393f65fe5f542475e54fbfc55817b80892ba93b22e6de pyRFC3339-0.2.tar.gz"
+sha512sums="54482528e429c0135823b333d18e6a9361ba99b18a62883e9b09f5533e75f08d12d9c1ee855296cecd98c11824f927984527bb0555a49e4284164b7fe4df8c4f pyRFC3339-0.2.tar.gz"