add python-numpydoc

This commit is contained in:
Trent Palmer 2019-04-29 10:39:51 -07:00
parent b2334deadb
commit bf4a23186d
2 changed files with 43 additions and 0 deletions

14
python-numpydoc/.SRCINFO Normal file
View File

@ -0,0 +1,14 @@
pkgbase = python-numpydoc
pkgdesc = Sphinx extension to support docstrings in Numpy format
pkgver = 0.9.1
pkgrel = 1
url = https://github.com/numpy/numpydoc
arch = any
license = BSD
depends = python-sphinx
options = !emptydirs
source = python-numpydoc-0.9.1.tar.gz::https://github.com/numpy/numpydoc/archive/v0.9.1.tar.gz
sha256sums = b480ef5a7ed680a2ecb1615c44a5becb8eacb2be94b58b200340f0a2a458b854
pkgname = python-numpydoc

29
python-numpydoc/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# Maintainer: Trent Palmer trenttdually at gmail
# Previous maintainer: Mattias Andrée <`base64 -d`(bWFhbmRyZWUK)@member.fsf.org>
# Previous maintainer: Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com>
pkgname=python-numpydoc
pkgver=0.9.1
pkgrel=1
pkgdesc="Sphinx extension to support docstrings in Numpy format"
arch=('any')
url="https://github.com/numpy/numpydoc"
license=('BSD')
depends=('python-sphinx')
backup=()
options=(!emptydirs)
source=("$pkgname-$pkgver.tar.gz::${url}/archive/v${pkgver}.tar.gz")
sha256sums=('b480ef5a7ed680a2ecb1615c44a5becb8eacb2be94b58b200340f0a2a458b854')
package() {
cd "$srcdir/numpydoc-$pkgver"
python setup.py install --root=$pkgdir/ --optimize=1 || return 1
install -D -m644 "$srcdir/numpydoc-$pkgver/LICENSE.txt" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
chmod 644 "$pkgdir"/usr/lib/python*/site-packages/numpydoc-$pkgver-py*.egg-info/*
}