2021-09-24 21:40:58 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=python-pydeps
|
|
|
|
_name=${pkgname#python-}
|
2022-04-10 04:35:04 +00:00
|
|
|
pkgver=1.10.14
|
|
|
|
pkgrel=1
|
2021-09-24 21:40:58 +00:00
|
|
|
pkgdesc="Python module dependency graphs"
|
|
|
|
arch=('any')
|
|
|
|
url="https://github.com/thebjorn/pydeps"
|
|
|
|
license=('BSD')
|
2022-04-10 04:35:04 +00:00
|
|
|
depends=(
|
|
|
|
'python'
|
|
|
|
'python-yaml'
|
|
|
|
'python-stdlib-list'
|
|
|
|
'graphviz'
|
|
|
|
)
|
2021-09-24 21:40:58 +00:00
|
|
|
makedepends=('python-setuptools')
|
|
|
|
checkdepends=('python-pytest')
|
|
|
|
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
2022-04-10 04:35:04 +00:00
|
|
|
sha512sums=('300b28ce2692bb997e29880d0ee745eaf6808954ab7dede1bc66e4a84edacdd0f49d4d8ec0112befee37af5bcacf69be93a91da36080574c0a432294c7381477')
|
|
|
|
b2sums=('64ebf4af8acfdbd2ffdaba18050c81fe18bb0d37bbb2054e3891cd0ff4a14d3f923cdd4a8e53a6d706c1733bc48b73c7da825a2e12c1aea8b614000b7a6b129d')
|
2021-09-24 21:40:58 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$_name-$pkgver"
|
|
|
|
python setup.py build
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
cd "$_name-$pkgver"
|
|
|
|
|
|
|
|
# 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 "$_name-$pkgver"
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|