archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-pyrfc3339 / trunk / PKGBUILD
blob29c8249a6c70d3021a4c29e1b9aee46e81fc5610
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Gordian Edenhofer <gordian.edenhofer[at]yahoo[dot]de>
4 pkgname=python-pyrfc3339
5 pkgver=1.1
6 pkgrel=10
7 pkgdesc="Parses and generates RFC 3339-compliant timestamps using Python datetime.datetime objects."
8 arch=('any')
9 license=('MIT')
10 url="https://pypi.python.org/pypi/pyRFC3339"
11 depends=('python-pytz')
12 makedepends=('python-setuptools' 'python-pytz')
13 checkdepends=('python-nose')
14 source=("https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-${pkgver}.tar.gz"
15         LICENSE.txt)
16 sha512sums=('958b7761fab590aa42bb57a955c5d834441f717796a452b60df21663099dcf2fc046afe60f8157fd0f1edfd95c5e9c9c5349ab10ca4078d210fc63d848496a2f'
17             '73c58b87e14593ee283cc323a93820c18a00e9af4e5027687fc8f6cd5735c98f341c6ac1aa90c040d0899766cabb976a85201b171874b4b81934ff02a9728f2d')
19 build() {
20   cd "$srcdir/pyRFC3339-$pkgver"
21   python setup.py build
24 check() {
25   cd "$srcdir/pyRFC3339-$pkgver"
26   python setup.py test
29 package() {
30   cd "$srcdir/pyRFC3339-$pkgver"
31   python setup.py install --root="$pkgdir/" --optimize=1
32   install -D -m644 ../LICENSE.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"