arch-pkgs/python-pydeps/PKGBUILD

54 lines
1.0 KiB
Bash
Raw Normal View History

2021-09-24 21:40:58 +00:00
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-pydeps
_name=${pkgname#python-}
2022-09-24 09:02:59 +00:00
pkgver=1.10.24
pkgrel=1
pkgdesc='Python module dependency graphs'
2021-09-24 21:40:58 +00:00
arch=('any')
url='https://github.com/thebjorn/pydeps'
2021-09-24 21:40:58 +00:00
license=('BSD')
depends=(
'python'
'python-yaml'
'python-stdlib-list'
'graphviz'
)
makedepends=('git' 'python-setuptools')
2021-09-24 21:40:58 +00:00
checkdepends=('python-pytest')
2022-09-24 09:02:59 +00:00
_commit='aed17eb135fa79611524dfe0ba2778a00e9d0ab1'
source=("$pkgname::git+$url.git#commit=$_commit")
b2sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --tags | sed 's/^v//'
}
2021-09-24 21:40:58 +00:00
build() {
cd "$pkgname"
2021-09-24 21:40:58 +00:00
python setup.py build
}
check() {
cd "$pkgname"
2021-09-24 21:40:58 +00:00
# figure out why package can't find pip
# (even if it is installed as a dependency)
pytest --ignore tests/test_package_names.py
}
package() {
cd "$pkgname"
2021-09-24 21:40:58 +00:00
python setup.py install --root="$pkgdir" --optimize=1
# documentation
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
# license
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}