2021-09-24 21:40:58 +00:00
|
|
|
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
|
|
|
|
|
|
|
pkgname=python-pydeps
|
|
|
|
_name=${pkgname#python-}
|
2022-11-26 06:40:42 +00:00
|
|
|
pkgver=1.11.0
|
2022-04-10 04:35:04 +00:00
|
|
|
pkgrel=1
|
2022-04-22 04:06:18 +00:00
|
|
|
pkgdesc='Python module dependency graphs'
|
2021-09-24 21:40:58 +00:00
|
|
|
arch=('any')
|
2022-04-22 04:06:18 +00:00
|
|
|
url='https://github.com/thebjorn/pydeps'
|
2021-09-24 21:40:58 +00:00
|
|
|
license=('BSD')
|
2022-04-10 04:35:04 +00:00
|
|
|
depends=(
|
|
|
|
'python'
|
|
|
|
'python-yaml'
|
|
|
|
'python-stdlib-list'
|
|
|
|
'graphviz'
|
|
|
|
)
|
2022-11-26 06:40:42 +00:00
|
|
|
makedepends=(
|
|
|
|
'git'
|
|
|
|
'python-build'
|
|
|
|
'python-installer'
|
|
|
|
'python-wheel'
|
|
|
|
'python-setuptools'
|
|
|
|
)
|
2021-09-24 21:40:58 +00:00
|
|
|
checkdepends=('python-pytest')
|
2022-11-26 06:40:42 +00:00
|
|
|
_commit='793e20a43d1adc7798793b42344a480f94e1d7c1'
|
2022-04-22 04:06:18 +00:00
|
|
|
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() {
|
2022-04-22 04:06:18 +00:00
|
|
|
cd "$pkgname"
|
|
|
|
|
2022-11-26 06:40:42 +00:00
|
|
|
python -m build --wheel --no-isolation
|
2021-09-24 21:40:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2022-04-22 04:06:18 +00:00
|
|
|
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() {
|
2022-04-22 04:06:18 +00:00
|
|
|
cd "$pkgname"
|
2021-09-24 21:40:58 +00:00
|
|
|
|
2022-11-26 06:40:42 +00:00
|
|
|
python -m installer --destdir="$pkgdir" dist/*.whl
|
2021-09-24 21:40:58 +00:00
|
|
|
|
|
|
|
# documentation
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/doc/$pkgname" README.rst
|
|
|
|
|
|
|
|
# license
|
|
|
|
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
|
|
|
}
|