archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-genshi / repos / community-any / PKGBUILD
blobe915966350619a0c28d5d042cae6794677e08fba
1 # Maintainer : Eli Schwartz <eschwartz@archlinux.org>
3 pkgname=python-genshi
4 pkgver=0.7.7
5 pkgrel=2
6 pkgdesc="Python toolkit for stream-based generation of output for the web."
7 arch=('any')
8 url="https://genshi.edgewall.org/"
9 license=("BSD")
10 depends=('python-six')
11 makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
12 checkdepends=('python-pytest')
13 source=("${pkgname}-${pkgver}.tar.gz::https://github.com/edgewall/genshi/archive/${pkgver}.tar.gz")
14 sha256sums=('53920c8ed890a3ce0e274845abe82d34736191ffc51300788d4cc71e4fcdd0eb')
16 build() {
17   cd genshi-${pkgver}
19   python -m build --wheel --no-isolation
22 check() {
23   cd genshi-${pkgver}
25   pytest -v
28 package() {
29   cd genshi-${pkgver}
31   python -m installer --destdir="${pkgdir}" dist/*.whl
32   install -Dm644 COPYING "${pkgdir}"/usr/share/licenses/${pkgname}/COPYING