archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / python-entrypoints / trunk / PKGBUILD
blob89a36ad9926a4c61d00a15f2d3577f09d5f6db9c
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
3 pkgname=python-entrypoints
4 _name=entrypoints
5 pkgver=0.4
6 pkgrel=3
7 pkgdesc="Discover and load entry points from installed packages."
8 arch=('any')
9 url="https://github.com/takluyver/entrypoints"
10 license=('MIT')
11 depends=('python')
12 makedepends=('python-build' 'python-installer' 'python-flit-core')
13 checkdepends=('python-pytest')
14 source=(https://github.com/takluyver/entrypoints/archive/$pkgver/$pkgname-$pkgver.tar.gz)
15 sha256sums=('d2197a94aa73e70a7f60600e654ac9918ca2a0ee5480eb875296c42220a02272')
17 build() {
18   cd $_name-$pkgver
19   python -m build --wheel --no-isolation
22 check() {
23   cd $_name-$pkgver
24   pytest -v
27 package() {
28   cd $_name-$pkgver
29   python -m installer --destdir="$pkgdir" dist/*.whl
31   install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"