addpkg: python-pydeps 1.10.3-1
This commit is contained in:
parent
121aa510de
commit
4093cf1210
1 changed files with 41 additions and 0 deletions
41
python-pydeps/PKGBUILD
Normal file
41
python-pydeps/PKGBUILD
Normal 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
|
||||
}
|
Loading…
Reference in a new issue