archrelease: copy trunk to community-any
[ArchLinux/community.git] / python-userpath / trunk / PKGBUILD
blob6da5ad71f43f617dce38c21d204c8263f94d4c19
1 # Maintainer: Filipe LaĆ­ns (FFY00) <lains@archlinux.org>
3 _pkgname=userpath
4 pkgname=python-$_pkgname
5 pkgver=1.8.0
6 pkgrel=2
7 pkgdesc='Cross-platform tool for adding locations to the user PATH, no elevated privileges required!'
8 arch=('any')
9 url='https://github.com/ofek/userpath'
10 license=('MIT')
11 depends=('python' 'python-click' 'python-distro')
12 makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
13 checkdepends=('python-pytest')
14 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
15 sha512sums=('d2f082909fad22cf5b33f175afdeebe14a44ebd245c84506395f01a288eccf9c376ac28dcc4b618cc2464e1a23e740b41f4f4ad0e780a42e1185c5283ccc7330')
17 build() {
18   cd $_pkgname-$pkgver
20   python -m build -nw
23 check() {
24   cd $_pkgname-$pkgver
26   python -m pytest
29 package() {
30   cd $_pkgname-$pkgver
32   python -m installer -d "$pkgdir" dist/*.whl
34   install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE-MIT
37 # vim:set ts=2 sw=2 et: