archrelease: copy trunk to extra-x86_64
[arch-packages.git] / python-constantly / repos / extra-any / PKGBUILD
blob83c6a21733ce4c6b2af211927a89ae59c54a275b
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-constantly
4 pkgver=15.1.0
5 pkgrel=13
6 pkgdesc='Symbolic constants in Python'
7 arch=('any')
8 license=('MIT')
9 url='https://github.com/twisted/constantly'
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner' 'python-twisted')
13 source=("https://github.com/twisted/constantly/archive/$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('eeaa74552fe8e01c40566ac3c8b3d41085f800863ac516e30fe1242f40d3401e4e872279149776f29d3ba78a7a16337a794ad26230efab4dd1847d42bffa81ce')
16 build() {
17   cd constantly-$pkgver
18   python setup.py build
21 check() {
22   cd constantly-$pkgver
23   python setup.py ptr
26 package() {
27   cd constantly-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
32 # vim:set ts=2 sw=2 et: