archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-teamcity-messages / repos / community-any / PKGBUILD
blobb38440f06484c9ea63528ff83a9d201ff5642a07
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 pkgname=python-teamcity-messages
4 pkgver=1.32
5 pkgrel=2
6 pkgdesc="Send test results to TeamCity continuous integration server from unittest, nose, py.test, twisted trial, behave"
7 url="https://github.com/JetBrains/teamcity-messages"
8 license=('Apache')
9 arch=('any')
10 depends=('python')
11 makedepends=('python-setuptools')
12 checkdepends=('python-pytest' 'python-virtualenv')
13 source=("https://github.com/JetBrains/teamcity-messages/archive/v$pkgver/$pkgname-$pkgver.tar.gz")
14 sha512sums=('b9733edb1e2aef4ca69773070e927a2b6162b34d8bea4b4fd22c5d7858de2d6416dcc39102aa718b4858635900519cfd7e02016143ac6a19fa82d1fd6780c0a3')
16 prepare() {
17   cd teamcity-messages-$pkgver
18   sed -i "s/virtualenv_version = 'virtualenv==20.7.2'/virtualenv_version = 'virtualenv'/" setup.py
21 build() {
22   cd teamcity-messages-$pkgver
23   python setup.py build
26 check() {
27   cd teamcity-messages-$pkgver
28   python setup.py test || echo "Tests failed"
31 package() {
32   cd teamcity-messages-$pkgver
33   python setup.py install --root="$pkgdir" --optimize=1