arch-pkgs/python-pydeps/PKGBUILD
2021-10-05 20:51:22 +00:00

41 lines
1.2 KiB
Bash

# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-pydeps
_name=${pkgname#python-}
pkgver=1.10.11
pkgrel=1
pkgdesc="Python module dependency graphs"
arch=('any')
url="https://github.com/thebjorn/pydeps"
license=('BSD')
depends=('python' 'python-yaml' 'python-stdlib-list' 'graphviz')
makedepends=('python-setuptools')
checkdepends=('python-pytest')
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha512sums=('9ce55597b6620b18142af55c7ca954b2f252cd95675e6bb5683a8e20f3e1d469a93b596460661825ac573b84de5bf4cfd84afde9198a674b5523150b759b456d')
b2sums=('5e45822e377c50c0fdb203583a33ef2325228d48ae211473359875d30a02543d7c24840753269fb26e8d490e968d5e832b030601fd8171909d8c834e4dd3b6b9')
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
}