addpkg: python-pydeps 1.10.3-1

This commit is contained in:
George Rawlinson 2021-09-24 21:40:58 +00:00
parent 121aa510de
commit 4093cf1210
Signed by: grawlinson
GPG key ID: E0959FEA8B550539

41
python-pydeps/PKGBUILD Normal file
View file

@ -0,0 +1,41 @@
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
pkgname=python-pydeps
_name=${pkgname#python-}
pkgver=1.10.3
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=('63eb53a2df65457723bba58bc40840ed360b5a5641dad800356ce372e0b0a9f290a879679719ae711a662382d6a862f62071e2fda63597a0d5769f16ddbe7726')
b2sums=('78482c04c0fb484fae702abfed2d92195d72b0ea17bdb9a49e7f7e6d5428f1862c9408154abc019a842b5d957dd41d2d506ee480c3625f14e15dd0c595527d3d')
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
}