archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-cogapp / trunk / PKGBUILD
blob2f04a7fab7ce2417d6bc579bb7aeb977379ca201
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-cogapp
4 pkgver=3.3.0
5 pkgrel=2
6 pkgdesc="A code generator for executing Python snippets in source files"
7 url="https://nedbatchelder.com/code/cog"
8 license=('MIT')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest-runner')
13 source=("https://pypi.io/packages/source/c/cogapp/cogapp-$pkgver.tar.gz")
14 sha512sums=('937b9372095ed0805d57083ff1642c66fc231ab65b09156fc0966df4439ced98f220d85e4ebca206b56969e1d721ff7dbb2c2d2550852b41a0dc17594317c322')
16 build() {
17   cd cogapp-$pkgver
18   python setup.py build
21 check() {
22   cd cogapp-$pkgver
23   python setup.py pytest
26 package() {
27   cd cogapp-$pkgver
28   python setup.py install --root="$pkgdir" --optimize=1
29   install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt